LNK4099 with QT Creator

Therefore, every time I create my program, I get the following warning message:

qtmaind.lib(qtmain_win.obj):-1: warning: LNK4099: PDB 'vc100.pdb' was not found with 'qtmaind.lib(qtmain_win.obj)' or at 'D:\Projects\Test-2\blah-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2010__Qt_SDK__Debug\debug\vc100.pdb'; linking object as if no debug info 

I can simply ignore it as described here in the question; LNK4099 using a simple Qt SDK installation and Visual C ++ 2008

But it gets quite annoying to see this all the time, and the fact is that vc100.pdb is created, but not in the debug folder. As you can see in the image below;

enter image description here

So, the linker looks for “vc100.pdb” in the debug folder, but the file “vc100.pdb” is in the top-level directory. So I'm wondering how I actually change the reference directory or infact in the QT creator, if I can move "vc100.pdb" to the debug folder?

+6
source share
2 answers

And, a lot of problems are automatically solved if you run Qt Creator from the Visual Studio command line. Just run

 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86 

(or find it in your Start menu) and enter the path to Qt Creator in it.

0
source

Vc100.pdb is the default pdb name for the library. This problem may be caused by creating multiple .lib files in the same directory.

This is fixed by the /Fdname.pdb parameter as the cl parameter.

0
source

Source: https://habr.com/ru/post/924951/


All Articles