On Jun 19, 2008, at 10:49 PM, Matt Sergeant wrote: > 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.
I think this problem was fixed by [5207]: http://www.sqlite.org/cvstrac/chngview?cn=5207 Please post a bug report or a message here if there are others that need to be removed. Dan. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users