How to compile sqlite3 threadsafe in a c++ application? -


right compiling sqlite3 code following options:
gcc -c -lpthread -dsqlite_threadsafe=1 sqlite3.c
g++ -o test test.cc sqlite3.o -ldl -lpthread
, works fine.
saw in projects, define flag -dsqlite_threadsafe=1 in g++ compiler call listet. required or redundant?

the sqlite_threadsafe symbol needed when compiling sqlite code itself. adding other compiler calls superfluous, not hurt.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -