On Wed, 18 Jun 2008 19:58:02 -0400, D. Richard Hipp wrote: > > On Jun 18, 2008, at 7:12 PM, Andrea Connell wrote: > >> I want to use the C API with a C++ class but when I try compiling... >> >> $ aCC -AA +W829 main.cpp sqlite3.c >> main.cpp: >> sqlite3.c: >> Error 482: "sqlite3.c", line 532 # Array of unknown size; 'const char > > SQLite is written in C, not C++. You have to use a C compiler to > compile it. If you compile to object code, you can normally link it > against C++ code without difficulty. But you cannot compile SQLite > directly using a C++ compiler.
Note that there are some C++ style comments crept back into the code (I noticed in the amalgamation, so I can't give you a direct pointer to them). This causes compile failures on stricter C compilers. Matt. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users