user1133907
user1133907

Reputation: 5

fatal error LNK1104: cannot open file 'mysqlcppconn.lib'

Hi am using MS visual VC++ 2008

trying to connect mysql though vc++ code..getting this link error still after setting linker input parameter

but now showing the link erro:fatal error LNK1104: cannot open file 'mysqlcppconn.lib' Set the mysqlcppconn.lib and libmysql.lib in the properties->configuration prperties-> Linker->Input->Additional dependencies.

IS there any way to set the mysqlcppconn.lib ?? any suggestion please

Upvotes: 0

Views: 8331

Answers (2)

Femi
Femi

Reputation: 64700

You may need to go to Properties->Configuration Properties->Linker->General->Additional Library Directories and add the directory that has the MySQL libraries in there so the linker can find them.

Upvotes: 1

ios_dotnet_superuser
ios_dotnet_superuser

Reputation: 304

you can include lib file programmatically :

pragma comment(lib, "requiredLibrary.lib")

good luck!

Upvotes: 0

Related Questions