Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] SQLite3 and Visual C++

Started by citizen3019 Jul 14, 2005 at 3:01 PM 0 replies 9.4k views
Original Post
citizen3019
citizen3019
Heyas- newb Q: I downloaded sqlite3 dll and if came with a *.def file. No sqlite3.h. So I downloaded the sqlite source and tried to compile and run the quick start tutorial on their website but it said it needed tcl(?). The tutorial on their website does not mention needing this. What mistake am I making or can someone point me in the direction of a tutorial that starts from the ground up? ty
Kylotan
Kylotan
The sqlite documentation is a bit vague, unfortunately. Here's what I did to get it to work.

- Download sqlitedll*.zip - extract .def and .dll files somewhere.
- Generate the lib file with a command like "c:\program files\micros~1\vc98\bin\lib" /def:sqlite3.def". Do that from a command prompt, in the directory with the .def file in, with the appropriate path to your lib.exe. You may need to run vcvars32.bat first, which is also in the bin directory. Copy the resulting .lib to an appropriate place, and set that as a library directory in VC++. (Or do it on a per-project basis.)
- Download the sqlite-source*.zip file, and extract the sqlite3.h file from within to a suitable directory. Set that as an include directory in VC++. (Again, you could do it on a per-project basis.)
- In your project, #include as required, add sqlite3.lib to your project, copy the sqlite3.dll to your executable's directory or working directory, and you should be ready to go.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.