2009-09-09

Compile c/c++ code with sqlite3 library.

1) Install sqlite3 library.
  • >wget http://www.sqlite.org/sqlite-amalgamation-3.6.17.tar.gz
  • >tar xvfz qlite-amalgamation-3.6.17.tar.gz
  • >cd sqlite-3.6.17
  • >./configure
  • >make
  • >make install

The library libsqlite3.la now is installed to /usr/bin/...

2) Compile as following. Try the test code.
  • >gcc -o test test.c -lpthread -ldl -lsqlite3

No comments:

Post a Comment