Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > How to disable debugger-related warnings!?!

Reply
Thread Tools

How to disable debugger-related warnings!?!

 
 
Jason Heyes
Guest
Posts: n/a
 
      12-09-2003
Does anyone debugger-related warnings like this one?

warning C4786:
'std::_Tree<std::basic_string<char,std::char_trait s<char>,std::allocator<cha
r>
>,std:air<std::basic_string<char,std::char_trait s<char>,std::allocator<cha

r> > const
,int>,std::map<std::basic_string<char,std::char_tr aits<char>,std::al
locator<char>
>,int,std::less<std::basic_string<char,std::char_t raits<char>,std::allocator

<char> > >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char _traits<char>,std::allocat

or<char> > >,std::allocator<int> >' : identifier was
truncated to '255' characters in the debug information

How do I disable it without littering my code with #pragma directives? I am
using VC++ 6.0. Thanks.


 
Reply With Quote
 
 
 
 
Chris Theis
Guest
Posts: n/a
 
      12-09-2003

"Jason Heyes" <(E-Mail Removed)> wrote in message
news:3fd57acd$0$1022$(E-Mail Removed) ...
> Does anyone debugger-related warnings like this one?
>
> warning C4786:

[SNIP]>
> How do I disable it without littering my code with #pragma directives? I

am
> using VC++ 6.0. Thanks.
>


This is a compiler specific question and has nothing to do with standard
C++. Anyway, checking out the help on #pragma you will find something like
this:

#pragma warning( disable : 4507 34; once : 4385; error : 164 )
which I think is self-explanatory.

Regards
Chris


 
Reply With Quote
 
 
 
 
puppet_sock@hotmail.com
Guest
Posts: n/a
 
      12-09-2003
"Jason Heyes" <(E-Mail Removed)> wrote in message news:<3fd57acd$0$1022$(E-Mail Removed) u>...
[parsnips]
> How do I disable it without littering my code with #pragma directives? I am
> using VC++ 6.0. Thanks.


We don't speak that around here. You will need to ask about compiler
specific stuff in a news group related to it.

You could try the microsoft.public.vc.* news groups, available
at www.google.com. Or you could try one of the news groups with
windows or dos in the name. And if you do a search on the topic
at google, I'm pretty sure you'll find the answer.
Socks
 
Reply With Quote
 
Gene Wirchenko
Guest
Posts: n/a
 
      12-09-2003
On Tue, 9 Dec 2003 18:33:33 +1100, "Jason Heyes"
<(E-Mail Removed)> wrote:

>Does anyone debugger-related warnings like this one?
>
>warning C4786:

[snipped compiler blah blah]
> truncated to '255' characters in the debug information
>
>How do I disable it without littering my code with #pragma directives? I am
>using VC++ 6.0. Thanks.


Just use one at the beginning. I use:
#pragma warning(disable:4786)
// Suppress warning about lengthy name generated.

I do not think that there is a Standard way of disabling such
messages. It would seem to be very implementation-defined.

Sincerely,

Gene Wirchenko

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Disable Wireless Connection at Start-Up? Guy Quinn Wireless Networking 3 11-10-2009 04:41 PM
unable to disable network connection Peter Welk Wireless Networking 5 10-15-2007 09:39 AM
How to disable Wireless Network Connection w/o losing Network Brid =?Utf-8?B?SGF0bW9u?= Wireless Networking 1 12-16-2004 07:37 PM
Disable Broadcast??? Ben Wireless Networking 5 08-01-2004 09:12 PM



Advertisments