开了一个交流群,欢迎爱好者和开发者一起交流,转载请注明出处。
QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样
========================================================
参考资料:
http://blog.csdn.net/followingturing/article/details/7851425 ————> linux下LibCurl编程
http://blog.chinaunix.net/uid-30019276-id-4906447.html ————> libcurl 编译详解
http://ivan4126.blog.163.com/blog/static/20949109220127362157616/ ————> Eclipse下开发C/C++程序之头文件,库文件引用
http://www.cnblogs.com/wanghetao/archive/2013/10/01/3348885.html ----> Makefile选项CFLAGS,LDFLAGS,LIBS
下载:
http://curl.haxx.se/download.html
编译:
./configure --prefix=/usr/local/curl; make; make install;
==============================================================================================================================
静态库
# gcc -L libpath -libname // 模板
# gcc -I/usr/local/curl/include/curl Ubuntu.cpp -L /usr/local/curl/lib/ -lcurl -o Ubuntu // 应用实例
恶补外部库设置:
// 以下内容设置后makefile会发生变化,仔细观察 设置编译属性 Project --> Proprity --> C/C++ Build --> Settings --> ToolSettings GCC C++ Compiler GCC C Compiler GCC C++ Linker GCC Assembler 设置工程属性 Project --> Proprity --> C/C++ General --> Paths and symbols includes Libraries