星期日, 六月 07, 2009

SQLITE 使用g++来编译

http://www.mail-archive.com/sqlite-users@sqlite.org/msg30132.html

SQLite is ANSI C, so youshould compile it with gcc. It will still be usable within your C++library/project, as sqlite3.h qualifies all functions extern "C".

gcc -c sqlite3.c

g++ -c main.cpp

g++ -o program main.o sqlite3.o -lpthread -ldl