PDB的vc100。pdb没有被发现。

时间:2022-07-02 04:54:16

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

我已经下载了FreeImage源代码,并为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?

一切正常,除非我在freeimage中使用链接。lib文件,我有很多恼人的链接警告,我不太明白原因是什么?

2>freeimage.lib(zutil.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'freeimage.lib(zutil.obj)' or at '\bin\Release\vc100.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.

是什么导致了这个问题,我该如何摆脱它?当我构建FreeImage时,我猜它是一些编译器选项。

Here is the command line for the FreeImageLib project:

下面是FreeImageLib项目的命令行:

/I"..\" /I"..\ZLib" /I"..\DeprecationManager" /I"..\OpenEXR\Half" /I"..\OpenEXR\Iex" /I"..\OpenEXR\IlmImf" /I"..\OpenEXR\Imath" /I"..\OpenEXR\IlmThread" /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

/我”……\“/我”……\ ZLib“/我”……\ DeprecationManager“/我”……一半\ OpenEXR \“/我”……\ OpenEXR \ Iex“/我”……\ OpenEXR \ IlmImf“/我”……\ OpenEXR \ Imath“/我”……" / " / " / " / " / " " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / " / "pch“/ Fa”。\调试/ /佛”。\调试/ / Fd”。\调试/”/ Gd / errorReport:队列

EDIT:

编辑:

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

我把它作为动态库来解决。尽管这不是我所希望的解决方案……

1 个解决方案

#1


30  

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.

当您使用调试符号编译一个静态库时,您将得到这个文件vc100。pdb,还有图书馆。该文件中的符号信息将与链接期间的其他库合并,以生成最终的PDB,用于连接的EXE或DLL。链接器抱怨它找不到它期望找到的文件。

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.

这只是一个警告,而且只会在调试版本中发生。如果您在发布配置中编译FreeImage,这个警告应该会消失。或者,找出为什么链接器没有找到vc100。pdb文件。

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

给你的另一个答案是愚蠢的废话。

#1


30  

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.

当您使用调试符号编译一个静态库时,您将得到这个文件vc100。pdb,还有图书馆。该文件中的符号信息将与链接期间的其他库合并,以生成最终的PDB,用于连接的EXE或DLL。链接器抱怨它找不到它期望找到的文件。

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.

这只是一个警告,而且只会在调试版本中发生。如果您在发布配置中编译FreeImage,这个警告应该会消失。或者,找出为什么链接器没有找到vc100。pdb文件。

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

给你的另一个答案是愚蠢的废话。