Visual C ++:如何禁用特定的链接器警告? [英] Visual C++: How to disable specific linker warnings?

查看:112
本文介绍了Visual C ++:如何禁用特定的链接器警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CGAL中的库,在我的代码编译的链接阶段,它会产生许多这种形式的链接警告:

I'm using a library from CGAL which during the linking stage of my code compilation produces a lot of linking warnings of this form:

warning LNK4099: PDB 'vc80.pdb' was not found with 'gmp-vc80-mt-sgd.lib' or at 'vc80.pdb'; linking object as if no debug info

如何在Visual C ++/Studio 2008中关闭此特定的链接程序警告?

How do I turn off this specific linker warning under Visual C++/Studio 2008?

请注意,我对正在使用的外部(CGAL)库没有任何控制.我不能/不想重新编译外部库.因此,需要在我的末端修复消息.

Note that I do not have any control on the external (CGAL) library which I am using. I cannot/donot want to get into recompiling the external library. Hence, the need to fix the messages at my end.

推荐答案

添加以下内容作为其他链接器选项:

Add the following as a additional linker option:

 /ignore:4099

这在属性"->链接器"->命令行"中

This is in Properties->Linker->Command Line

这篇关于Visual C ++:如何禁用特定的链接器警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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