在Visual Studio IDE 6.0级别中禁用警告. [英] Disabling warning in visual studio IDE 6.0 level.

查看:128
本文介绍了在Visual Studio IDE 6.0级别中禁用警告.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能建议我在项目级别禁用警告.

我正在使用Visual stuido 6.0.
我在许多文件中尝试了以下代码,但是没有用.
.

Hi all,

can any one suggest me to disable warning in projectlevel.

I am using visual stuido 6.0.
I tried this below code in many files, but not worked.
.

#pragma warning( disable : 4786 )



Visual Studio 6.0一直在发出警告: c:\ program files \ microsoft visual studio \ vc98 \ include \ map(27):警告C4786:bla bla bla .... .



visual studio 6.0 is keep on giving warning:c:\program files\microsoft visual studio\vc98\include\map(27) : warning C4786: bla bla bla.....

推荐答案

,您可以使用IDE本身进行操作.
转到项目设置"->"C/C ++"标签->从类别组合中选择常规".从警告级别"组合中选择较低的级别
you can do it using IDE itself.
Go to Project Settings->C/C++ tab->Select "General" from category combo. select lower Level from "warning Level" Combo


我不认为可以使用IDE本身来完成.我们的方法是拥有一个全局包含文件 Configure.h ,其中包含必须为每个源文件设置/定义/声明的内容.此包含文件还会禁用一些使用编译指示的警告.
I don''t think it can be done using the IDE itself. The way we do it is to have a global include file Configure.h that contains stuff that has to be set/defined/declared for every source file. This include file also disables some warnings using pragmas.


这篇关于在Visual Studio IDE 6.0级别中禁用警告.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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