Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

c++ - PDB 'vc100.pdb' was not found with

I have downloaded the FreeImage source code and done a static build myself for X64 MT DLL.

Everything works fine, except when I use link in the freeimage.lib file I get a lot of annoying linker warnings which I don't quite understand the cause for?

2>freeimage.lib(zutil.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'freeimage.lib(zutil.obj)' or at 'inReleasevc100.pdb'; linking object as if no debug info

... and it continous like that...

What is causing this and how do I get rid of it? I'm guessing it's some compiler option when I build FreeImage.

Here is the command line for the FreeImageLib project:

/I".." /I"..Lib" /I"..DeprecationManager" /I"..OpenEXRHalf" /I"..OpenEXRIex" /I"..OpenEXRIlmImf" /I"..OpenEXRImath" /I"..OpenEXRIlmThread" /nologo /W3 /WX- /Od /D "WIN32" /D "_DEBUG" /D "OPJ_STATIC" /D "FREEIMAGE_LIB" /D "_CRT_SECURE_NO_DEPRECATE" /D "LIBRAW_NODLL" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /GF- /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /openmp /Fp".Debug/FreeImageLib.pch" /Fa".Debug/" /Fo".Debug/" /Fd".Debug/" /Gd /errorReport:queue

EDIT:

I solved it by building it as a dynamic library instead. Though that is not the solution I had hoped for...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

When you compile a static library with debug symbols, you get this file, vc100.pdb, along with the library. The symbolic information in this file will be merged with that of other libraries during linking, to produce the final PDB for the EXE or DLL you are linking. The linker is complaining that it cannot find this file where it expects it to be found.

It's only a warning, and it will only happen in debug builds. If you compile FreeImage in release configuration, this warning should go away. Or, figure out why the linker isn't finding the vc100.pdb file.

The other answer that has been given to you is insane nonsense.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...