curl、openssl、sqlite静态库编译

代码均可从网上下载
编译curl:
./configure --prefix=/home/df/Desktop/CURL+ssl+GUOMI/curl --enable-static //定义configure的参数,产生makefile
make
make install //安装curl

编译openssl:
./config no-asm shared -fpic --prefix=/home/df/Desktop/CURL+ssl+GUOMI/ssl
make
make install

编译sqlite:
gcc -c -fPIC -w sqlite3secure.c
ar -cr libsqlite3.a sqlite3secure.o

1、错误1
在这里插入图片描述
错误原因:编译sqlite3secure.c的时候应该用
gcc -c -fPIC -w sqlite3secure.c
ar -cr libsqlite3.a sqlite3secure.o
编译完成的静态库再放到用到的程序中就会显示编译成功

【下载链接】如下,或者关注我微信公众号(码农茶歇),后续会在公众号中提供下载(因为这里下载需要积分,建议关注我公众号,免费提供下载-)。

相关下载:
curl源码下载:https://download.csdn.net/download/gongxie0235/11261178
openssl源码下载:https://download.csdn.net/download/gongxie0235/11261183
sqlite源码下载:https://download.csdn.net/download/gongxie0235/11261186

你可能感兴趣的:(静态库,C++,静态库,ssl,curl,sqlite)