On Mon, 15 Aug 2005, Aaron Schneider wrote:
If you compile and use the header files from the projects, they will
add a __declspec(dllimport) to the beginning of the files. In Visual
Studio, this changes the symbol defs, so functions used in your
linked
code will not work.
To fix it, just change the "#define SQLITE_EXPORT
__declspec(dllimport)" to "#define SQLITE_EXPORT" near the top of
sqlite.h.
Project? DLL? Visual Studio? I said I was using Linux and g++
I know you're not using Visual Studio. But I'm guessing that g++ does
something similar. Make sure that the macro SQLITE_EXPORT is not equal
to __declspec(dllimport), recompile all of the object files, and see if
that works.
But I'm using the libraries that came with my distribution. I didn't
compile them myself in the first place, and I shouldn't have to go editing
system files just to statically link something.
In any event, I checked in sqlite3.h and it doesn't even contain a
"#define SQLITE_EXPORT" line.
--
David Kettler
[EMAIL PROTECTED]