Setting up Visual Studio for our project - telkkar/CS_380_Card_Reader GitHub Wiki
These instructions will assume that you have already created your project, and all relevant project files are in the correct directory. You will also need to add the file "sqlite3.lib" into the project directory.
Setting up VS to compile with sqlite3 library
- Go to Project -> Properties
- Go to Configuration Properties -> VC++ Directories
- Click on the right hand side of Library Directories, pull down the drop down menu and select edit.
- Click on the folder icon and add the directory where your three files are located. Click okay.
- Expand Linker under Configuration Properties.
- Click on Input.
- Click on the right hand side of Additional Dependencies, and pull down the drop down box and select edit.
- In the top half, enter "sqlite3.lib" and "comctl32.lib"
- Click Okay and Apply.
- You're now ready to build test.cpp with the SQLite library statically linked! (That is, you don't have to copy around a .dll file, although we can certainly do that!)