Scott Hill wrote:
Hello,
First time on this list. I am trying to get sqlite into an app using
Borlands C++Builder. I have included the sqlite3.h file and the code
compiles. However, when it tries to link I get an unresolved external
for
sqlite3_open, etc. Does anyone have any experience using C++Builder?
Thanks,
Scott,
To use the sqlite3.dll with Borland C++ you need to build a Borland
specific import library for the dll, and then add this library to your
project. The library will open the sqlute3 dll whenever you call one of
the included functions. This library is built using command line
utilities provided by Borland, impdef.exe and implib.exe.
First run impdef to extract the symbol definitions from the dll. This
will create the file sqlite3.def.
impdef -a sqlite3.def sqlite3.dll
Now run implib to generate the import library, sqlite3.lib.
implib sqlite3.lib sqlite3.def
In theory these steps can be combined, but I have had errors with
missing symbols if I use implib to extract the symbols and generate the
library at the same time. I believe this is a Borland bug.
Now add the sqlite3.lib file to your project and rebuild and it should work.
HTH
Dennis Cote
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------