Pls Help LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)'
-
Dear users, I'm new in this forum and I have few questions ;)
I have installed (in Win 7 64 bit) Qt SDK today, the version is 1.2.1 (I downloaded and run the "offline installer 1.7 gb") because I'd like to give it a try.
I have also installed in my computer Visual Studio 2010 few months ago without a problem and SDL to develop c++ applications.
Now I would like to know....;)
-Could you explain me if there is a difference between installing the add in for VS2010 and what I did (I downloaded the installer with the SDK and installed that)? I mean pros and cons....
Is it ok or I did a mistake?
- I ask this because after the installation I have launched QT CREATOR and on the welcome page I tried to run the demos to check the various examples but everytime I click CTRL+R to build the applications, I have the following errors:
Examples:
LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'C:\QtSDK\Examples\4.7\widgets\scribble-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\vc100.pdb'; linking object as if no debug info
LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'C:\QtSDK\Examples\4.7\declarative\toys\tvtennis-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\vc100.pdb'; linking object as if no debug info
How can I fix this annoying issue?
Thank you very much!
Cheers ;)
-
bq. linking object as if no debug info
Looks like you linking Debug version of Qt libraries with release profile of VC libs... Something wrong with Build Profile... But it is just warning, and if you don't need debug facilities of VC components you can just ignore this warning....
If you use VS2010 compiler and will use win SDK components and to not have any kind of problems with dependencies between VC you use, dependencies of Qt(which is compiled with mingw!?) etc... Just download Qt sources, compile them with your VS, install VS Add-in and use Qt in in VS. you then need only vcredist to be deployed with your application. IMHO
-
[quote author="The Thinker" date="1336616424"]-Could you explain me if there is a difference between installing the add in for VS2010 and what I did (I downloaded the installer with the SDK and installed that)? I mean pros and cons....
[/quote]
vsaddin is only an addin to msvc and nothing more. You need the compiled Qt libs/dll in addition. When working with msvc I recommend using also vsaddin. It integrates Qt handling support to your msvc IDE. However, you need to have a licensed version of msvc. It does not work with the express versions, since they do not allow for addins.[quote author="The Thinker" date="1336616424"]
- I ask this because after the installation I have launched QT CREATOR and on the welcome page I tried to run the demos to check the various examples but everytime I click CTRL+R to build the applications, I have the following errors:
Examples:
LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'C:\QtSDK\Examples\4.7\widgets\scribble-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\vc100.pdb'; linking object as if no debug info
LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'C:\QtSDK\Examples\4.7\declarative\toys\tvtennis-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\vc100.pdb'; linking object as if no debug info
How can I fix this annoying issue?
[/quote]This is a common issue with msvc. There are a couple of threads on the issue. AFAIK there is no cure for it. I have the issue also. I have msvc 2005 and the newest version of vsaddin in use. However, it is simply a warning and does not cause problems.
-
You might want to have a look to "this response":http://qt-project.org/forums/viewthread/16132/#85414 to a similar post. That might cure your problem.