LNK1104: cannot open file
-
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.
-
Try change "" with "/".
Also you can try library adding wizard (right click on project tree -> Add library) -
I tried both with adding forward slashes instead and trying the wizard but get the same error message.
-
Hi and welcome to devnet,
What do you get if you use something like
@
LIBS += -LC:/MySQL/lib
-lmysql
@?