找不到 PDB 'vc100.pdb'

PDB #39;vc100.pdb#39; was not found with(找不到 PDB vc100.pdb)

本文介绍了找不到 PDB 'vc100.pdb'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了 FreeImage 源代码并自己为 X64 MT DLL 进行了静态构建.

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

一切正常,除了当我在 freeimage.lib 文件中使用链接时,我收到很多烦人的链接器警告,我不太了解原因?

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...

是什么原因造成的,我该如何摆脱它?我猜这是我构建 FreeImage 时的一些编译器选项.

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

这是 FreeImageLib 项目的命令行:

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 "_D​​EBUG"/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:精确/Zc:wchar_t/Zc:forScope/openmp/Fp".Debug/FreeImageLib.pch"/Fa".Debug/"/Fo".Debug/"/Fd".Debug/"/Gd/errorReport:queue

/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

我通过将其构建为动态库来解决它.虽然这不是我所希望的解决方案......

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

推荐答案

当你用调试符号编译一个静态库时,你会得到这个文件,vc100.pdb,连同库.此文件中的符号信息将在链接期间与其他库的符号信息合并,以生成您要链接的 EXE 或 DLL 的最终 PDB.链接器抱怨它无法在预期的位置找到该文件.

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.

这只是一个警告,它只会在调试版本中发生.如果你在发布配置中编译 FreeImage,这个警告应该会消失.或者,找出链接器找不到 vc100.pdb 文件的原因.

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.

这篇关于找不到 PDB 'vc100.pdb'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:找不到 PDB 'vc100.pdb'

基础教程推荐