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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -