QTCreator / QT 5.0.1 / msvc2010
-
Hello,
i created a application with qtcreator and qt5.0.1. I will compile it with the msvc compiler.
Compiling stops with the following error:
LINK : fatal error LNK1181: Could not open "qtmain.lib".What i make wrong??
my project file:
LIBS += C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin
INCLUDEPATH += C:\Qt\projects\intranet_client
INCLUDEPATH += C:\Qt\Qt5.0.1\5.0.1\mingw47_32\binqmake command:
qmake.exe C:\Qt\projects\intranet_client\intranet_client.pro -r -spec win32-msvc2010What i make wrong??
-
hm... It seems that you have set paths to mingw (mingw47_32) version but you are trying to compile it with msvc.
-
Oooh, i didn´t know, that the mingw and msvc libaries are not compatible.
-
[quote author="DBGTMaster" date="1360876383"]Oooh, i didn´t know, that the mingw and msvc libaries are not compatible.[/quote]
Yes, the libraries and the app have to build with the same compiler.
-
Hello,
my next error message is:
:-1: Error:LNK1181: Could not open inputfile "C:\Qt\Qt5.0.1\5.0.1\msvc2010\lib.obj"the file does not exists ??? what make i wrong?
-
[quote author="DBGTMaster" date="1360937879"]Hello,
my next error message is:
:-1: Error:LNK1181: Could not open inputfile "C:\Qt\Qt5.0.1\5.0.1\msvc2010\lib.obj"the file does not exists ??? what make i wrong?[/quote]
Please post here the .pro file of your project again.