Ogólnie jest tak:
Linker > Input > Additional Dependencies jest tyko : %(AdditionalDependencies)
------ Build started: Project: TestMySQL, Configuration: Debug Win32 ------
Source.obj : error LNK2019: unresolved external symbol _get_driver_instance referenced in function _main
C:\Users\alien1983\Documents\Visual Studio 2013\Projects\TestMySQL_2\Debug\TestMySQL.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Natomiast jak jest tak: Linker > Input > Additional Dependencies jest tyko : mysqlcppconn-static;%(AdditionalDependencies)
------ Rebuild All started: Project: TestMySQL, Configuration: Debug Win32 ------
Source.cpp
LINK : fatal error LNK1104: cannot open file 'mysqlcppconn-static.obj'
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Dodane linki do bibliotek:
Linker > Input > Additional Dependencies : mysqlcppconn-static;%(AdditionalDependencies)
Linker > General > Additional Library Directories : C:\Users\alien1983\Documents\Visual Studio 2013\Projects\TestMySQL_2\TestMySQL\lib;%(AdditionalLibraryDirectories)
c/c++ > General > Additional Include Directories : C:\Users\alien1983\Documents\Visual Studio 2013\Projects\TestMySQL_2\TestMySQL\include;%(AdditionalIncludeDirectories)
c/c++ > Preprocessor > Preprocessor Definitions : WIN32;_DEBUG;_CONSOLE;_LIB;CPPCONN_PUBLIC_FUNC=;%(PreprocessorDefinitions)
Paczka bibliotek pobrana z strony mysql to: mysql-connector-c++-noinstall-1.1.5-win32.zip