sqlite3链接问题

时间:2010-08-11 04:07:01

标签: sqlite

我很难将程序与sqlite3联系起来。有任何想法吗?

gcc -g -O2 main.o work.o uuid.o sqlite3.o -lboost_system -lboost_thread -o server
sqlite3.o: In function `unixDlError':
/home/matt/dev/serv/sqlite3.c:27231: undefined reference to `dlerror'
sqlite3.o: In function `unixDlSym':
/home/matt/dev/serv/sqlite3.c:27258: undefined reference to `dlsym'
sqlite3.o: In function `unixDlClose':
/home/matt/dev/serv/sqlite3.c:27262: undefined reference to `dlclose'
sqlite3.o: In function `unixDlOpen':
/home/matt/dev/serv/sqlite3.c:27217: undefined reference to `dlopen'
collect2: ld returned 1 exit status

1 个答案:

答案 0 :(得分:9)

在-lboost_thread之后在那里粘贴-ldl。