On Aug 13, 2014, at 2:31 AM, YAN HONG YE <yanhong...@mpsa.com> wrote:
> When I add sqlite3.c and sqlite3.h to xcode ios cocoa project, and compiled, > the error msg is: > Sqlite3 class is not a objective class, who have any cocoa sqlite source, I > don't know how to do. If you compile in a .mm file instead of a .m file, you will fire up the ObjectiveC++ clang and it should compile the sqlite.h and sqlite.c file without trouble -- well, there will be some warnings. We do this so we can trace into it, use common table subexpressions, and have a known version we are running against. We also provide our code as a library to other developers, so this eliminates one more dependency (we put sqlite.h in a namespace in case the client app links with Apple's version too). Be sure to #define HAVE_USLEEP. It's fun to watch xcode groan as it tries to load up the amalgamation source in the debugger! -- Ward _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users