Dennis Cote wrote: > I haven't tried linking to a DLL using DevC++, but that should be > basically the same, except you will need to produce a gcc compatible > import library for the DLL and link to that rather than libsqlite.a. > You can do this with dlltool like so; > > dlltool --implib libsqlitedll.a --dllname sqlite.dll --input-def > ./sqlite/sqlite.def > > Then add libsqlitedll.a to the project instead of libsqlite.a. Make > sure you copy sqlite.dll into the same directry as your application > (or the windows/system directory). >
I just verified that this does work as expected. I have also filed a ticket with attached patches to have the SQLite makefiles (both sqlite 2 and 3) produce GCC compatible import libraries for sqlite.dll in addition to the Borland and MSVC import libraries. So now you can build applications statically linked to libsqlite.a or dynamically linked to sqlite.dll through libsqlitedll.a