STL warning messages

From: flipdog (john.lai_at_worldnet.att.net)
Date: 05/29/04


Date: Sat, 29 May 2004 21:04:44 GMT

Hello all,
When I compile STL program (my program requires me to include the header
"string"), the compiler generates a truck load of identical warning messages
as follows:

warning C4786:
'std::deque<std::basic_string<char,std::char_traits<char>,std::allocator<cha
r>
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocato
r<char> >
>>::deque<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocato
r<char> > > >' : identifier was truncated to '255' characters in the debug
information

To get rid of it, I tried to use
#pragma warning(disable:4786)
right after the include headers at the beginning. It still doesn't work.
Is there something else I can do to get rid of these messages.
I am using MSVC. Will these warnings also generated by other compilers as
well?

Thanks,
FD



Relevant Pages

  • Re: C++0x: Scaling up on weak foundations?
    ... I think backward compatibility is a weak foundation to build upon and the ... Well I'm designing my own language. ... You should prefer to make it not compile instead of fail ... For this purpose there are standard header ...
    (comp.lang.misc)
  • Re: Forth Frustrations
    ... Traditional Forth compiles the header at the beginning and unsmudges ... data on the control-flow stack you have a colon-sys. ... compile a previous word with the same name, ... switch a compiler back and forth, ...
    (comp.lang.forth)
  • Re: Forth Frustrations
    ... And when you heard the simple rule that all defining words are followed by the name of the thing being defined, ... where the code starts relative to the header. ... compile a previous word with the same name, ... sense to have the nameless code ready before you start. ...
    (comp.lang.forth)
  • Re: curiosity about includes
    ... everything it needs to compile correctly. ... makes a lot more sense for every view header to include the document header file. ... CXXXDoc* without any include or prototype. ...
    (microsoft.public.vc.mfc)
  • Re: Automatically generate variables
    ... That when you force MSVC into ISO mode, it can't compile its own ... header without errors. ... MSVC is a good implementation, ... MSVC is an *excellent* implementation of C90, ...
    (comp.lang.c)