473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to disable warning C4786 in VC++ 6.0?

This debugger-related warning is flooding my output window. Example:

c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::pair<std::_Tree<std::basic_string<char,std:: char_traits<char>,std::allocator<char>
,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<char
const
,TextureRecord>,std::map<std::basic_string<char,st d::char_traits<char>,std::allocator<char>
>,TextureRecord,std::less<std::basic_string<char,s td::char_traits<char>,std::allocator<char>
> >,std::allocator<TextureRecord> >::_Kfn,std::less<st
d::basic_string<char,std::char_traits<char>,std::a llocator<char> >,std::allocator<TextureRecord>
::const_iterator,std::_Tree<std::basic_string<cha r,std::char_traits<char>,std::allocator<char>
,std::pair<std::basic_string<char,std::char_trait s<ch ar>,std::allocator<char> > const
,TextureRecord>,std::map<std::basic_string<char,st d::char_traits<char>,std::allocator<char>,TextureRecord,std::less<std::basic_string<char,s td::char_traits<char>,std::allocator<char>
,std::allocator<TextureRecor
d>::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocator<char>
,std::allocator<TextureRecord> >::const_iterator>' : identifier was

truncated to '255' characters in the debug information

What options can I set to disable this warning? Any help is appreciated.

Jason.
Jul 23 '05 #1
5 8847
Jason Heyes wrote:

This debugger-related warning is flooding my output window. Example:

c:\program files\microsoft visual studio\vc98\include\xmemory(38) : warning
C4786:
'std::pair<std::_Tree<std::basic_string<char,std:: char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_trait s<char>,std::allocator<char
const
,TextureRecord>,std::map<std::basic_string<char,st d::char_traits<char>,std::allocator<char>
>,TextureRecord,std::less<std::basic_string<char,s td::char_traits<char>,std::allocator<char>
> >,std::allocator<TextureRecord> >::_Kfn,std::less<st

d::basic_string<char,std::char_traits<char>,std::a llocator<char> >
>,std::allocator<TextureRecord>
>::const_iterator,std::_Tree<std::basic_string<cha r,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_trait s<ch

ar>,std::allocator<char> > const
,TextureRecord>,std::map<std::basic_string<char,st d::char_traits<char>,std::allocator<char>
>,TextureRecord,std::less<std::basic_string<char,s td::char_traits<char>,std::allocator<char>
> >,std::allocator<TextureRecor

d>
>::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocator<char>
> >,std::allocator<TextureRecord> >::const_iterator>' : identifier was

truncated to '255' characters in the debug information

What options can I set to disable this warning? Any help is appreciated.


While this question is off topic in this group
(in the future please direct questions about how to operate
your compiler to a group dedicated to your compiler)

insert
#pragma warning (disable : 4786)
as the very first line (before all the includes) of your code

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #2
"Karl Heinz Buchegger" <kb******@gascad.at> wrote in message
news:42***************@gascad.at...

While this question is off topic in this group
(in the future please direct questions about how to operate
your compiler to a group dedicated to your compiler)

insert
#pragma warning (disable : 4786)
as the very first line (before all the includes) of your code


I have alot of source files and to insert each #pragma by hand would be
time-consuming. What do you suggest I do? Will I need to find a separate
tool to automate the process? Thanks.
Jul 23 '05 #3
>> While this question is off topic in this group
(in the future please direct questions about how to
operate your compiler to a group dedicated to your
compiler)

insert
#pragma warning (disable : 4786)
as the very first line (before all the includes) of your
code


I have alot of source files and to insert each #pragma by
hand would be time-consuming. What do you suggest I do?
Will I need to find a separate tool to automate the
process? Thanks.

Check out

http://www.bdsoft.com/tools/stlfilt.html
STLFilt simplifies and/or reformats long-winded C++ error and warning messages,
with a focus on STL-related diagnostics (and for MSVC 6, it fully eliminates
C4786 warnings and their detritus).
Jul 23 '05 #4
If you are using VC projects I am assmuing you must be using
precompiled headers as well.

Put the pragma warning in the pch header for all projects

Raj

Jul 23 '05 #5
On Thu, 3 Mar 2005 21:59:05 +1100 in comp.lang.c++, "Jason Heyes"
<ja********@optusnet.com.au> wrote,
What options can I set to disable this warning? Any help is appreciated.


See:
http://groups.google.com/groups?as_q...arning%20C4786

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason Heyes | last post by:
Does anyone debugger-related warnings like this one? warning C4786: 'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<cha r>...
4
by: thule | last post by:
Okay, thanks to John (THANK YOU SO MUCH). I switched all my header files over to using the new Standard <iostream> and included the using namespace std; . This seems to have fixed all the errors I...
0
by: Peter | last post by:
Hi, I've been recently porting some software written under VC++ 6.0 to VC .NET. The software was compiling fine under 6.0 but under .NET I'm getting linker warning: b.obj : warning LNK4227:...
5
by: Robert A Riedel | last post by:
I have a class that is intended to be exported in a DLL that uses another class that is in a static library. All clients that use the DLL will also link with the same static library. In summary,...
3
by: Ryan | last post by:
My project uses the /ORDER specifier to order functions as specified in file containing the decorated names of packaged functions (COMDATs). I am in the process of upgrading from VC6 to VC.NET 2003....
5
by: Alan Cobb | last post by:
Hi, In the managed C++ class below I get compile warning C4677 from VS2003. "signature of non-private function contains assembly private type", even though the managed enum is public. I have...
11
by: Ejaz ul Haq | last post by:
Dear All, I have upgraded my source code from VS 2003 to VS 2005, and my code is breaking due to the _SECURE_ATL macro in some methods of ATL. As it is executed all the times though there is also...
5
by: mario | last post by:
Hi! For reasons that it would be long to explain, I need to use the option /QIfist in VC2005. This gives me the following warning whenever I compile: cl : Command line warning D9035 : option...
11
by: Herhor | last post by:
Hello! I have already started C++ programming with VC++ 2005 Express Edition. Unfortunately during debugging one of my first programs I had to unintentionally enable some debugger configuration...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.