且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在eclipse C / C ++项目中使用sqlite3.c和sqlite3.h

更新时间:2023-02-08 10:56:47

确保 pthread / em> dll 库。

Make sure that the pthread library is linked before the dl library.

换句话说,你的编译器命令(由Eclipse生成)应该是:

In other words, your compiler command (as generated by Eclipse) should be:

gcc shell.c sqlite3.c -lpthread -ldl

gcc shell.c sqlite3.c -lpthread -ldl

而不是

gcc shell.c sqlite3.c -ldl -lpthread

gcc shell.c sqlite3.c -ldl -lpthread

查看正确的命令行:

http://www.sqlite.org/howtocompile.html