VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'
Hello,
I installed Visual Studio 2008 Professional with SP1, I installed QT 4.6 Open Source Version, then I installed QT-VS addin.
I created a new QT Application Project and I inserted a HelloWorld source cose.
When I press "Build Solution", it returns with error:
Code:
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file 'qtmain.lib'
Now this error is common in the web and I can't find any solution.
I hope you can help me.
Re: VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'
Do you have the visual studio version of Qt, or the QtCreator version? If the later, go download the former, or build it yourself.
If you already have the libs, set QTDIR variable correctly.