Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   How to disable debugger-related warnings!?! (http://www.velocityreviews.com/forums/t279870-how-to-disable-debugger-related-warnings.html)

Jason Heyes 12-09-2003 07:33 AM

How to disable debugger-related warnings!?!
 
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::pair<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.



Chris Theis 12-09-2003 08:24 AM

[OT] Re: How to disable debugger-related warnings!?!
 

"Jason Heyes" <geoffhys@optusnet.com.au> wrote in message
news:3fd57acd$0$1022$afc38c87@news.optusnet.com.au ...
> 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



puppet_sock@hotmail.com 12-09-2003 06:07 PM

Re: How to disable debugger-related warnings!?!
 
"Jason Heyes" <geoffhys@optusnet.com.au> wrote in message news:<3fd57acd$0$1022$afc38c87@news.optusnet.com.a 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

Gene Wirchenko 12-09-2003 08:00 PM

Re: How to disable debugger-related warnings!?!
 
On Tue, 9 Dec 2003 18:33:33 +1100, "Jason Heyes"
<geoffhys@optusnet.com.au> 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



All times are GMT. The time now is 09:01 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57