LNK1104: cannot open file
Installation and Deployment
4
Posts
3
Posters
2.5k
Views
1
Watching
-
I am currently trying to build mysql drivers using QT Creator 3.0.1 with MSVC 11. I have copied the contents MySQL Connector 6.1.3 to C:\MySQL and have edited the mysql.pro file located in ..\qtbase\src\plugins\sqldrivers\mysql with the following:
LIBS += C:\MySQL\lib\libmysql.lib
INCLUDEPATH += C:\MySQL\includesWhen trying to build the file, I get the error: LNK1104: cannot open file 'libmysql.lib'. I have tried with the file in the working directory and also located in the C:\MySQL folder with no change. There are no spaces in the .lib path so I'm not sure what else would be causing the error.
-
Hi and welcome to devnet,
What do you get if you use something like
@
LIBS += -LC:/MySQL/lib
-lmysql
@?