找不到PDB'vc100.pdb' [英] PDB 'vc100.pdb' was not found with

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

问题描述

我已经下载了FreeImage源代码,并为X64 MT DLL做了静态构建。



一切正常,除非我在freeimage.lib文件中使用链接我得到了很多恼人的链接器警告,我不很明白的原因? / p>

  2> freeimage.lib(zutil.obj):warning LNK4099:PDB'vc100.pdb' lib(zutil.obj)'或'\bin\Release\vc100.pdb';如果没有调试信息

... >

这是什么原因,如何摆脱它?我猜这是一个编译器选项,当我建立FreeImage。



这是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 / DWIN32/ D_DEBUG
/ DOPJ_STATIC/ DFREEIMAGE_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


编辑:



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

解决方案

当你使用调试符号编译静态库时,这个文件,vc100.pdb,以及库。此文件中的符号信息将在链接期间与其他库的符号信息合并,以生成正在链接的EXE或DLL的最终PDB。链接器抱怨,它找不到这个文件,它希望找到它。



这只是一个警告,它只会发生在调试生成。如果在发布配置中编译FreeImage,此警告应该消失。或者,找出为什么链接器找不到vc100.pdb文件。



给你的另一个答案是疯狂的废话。


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

Here is the command line for the FreeImageLib project:

/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

EDIT:

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

解决方案

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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆