I cannot figure out how to get sqlite3.dll (or any dll for that matter) to work with my C++ project in Visual Studio.
The error message I get is LNK2001 unresolved external symbol sqlite3_open
Here's what I did so far:
- I put the .dll in myProjectFoler/Resources/sqlite3.dll
- I generated sqlite3.lib using Visual Studio Developer Command Prompt using a command
lib /def:sqlite3.def
- I referenced the directory with the lib in Project -> Preferences -> Linker -> General -> Additional Library directories, and then referenced the .lib in Project -> Preferences -> Linker -> Input-> Additional dependencies
- I placed sqlite3.h in my project and #included it
(pretty much followed the instructions seen here)
Thank you for help