更新时间: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
查看正确的命令行: