On Tuesday, June 28, 2011 9:36:22 f.h. Stephan Beal wrote:
> There is NOTHING wrong with mixing .c and .cpp files in one C++ project.
> Compile the C code with gcc and C++ code with g++, and then link them
> together as you would any other objects.

Compiling sqlite as C++ is "hopeless", so this is a good idea!

However, be warned that if you use exceptions, you can't use sqlite3_exec, 
because then the exceptions can't make it through the C code. It's easy enough 
to roll your own sqlite3_exec and compile it as C++.

Charles
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to