Unknown warnings
-
Can anybody tell me why when I compile the following program using VCC 6.0 #include #include using namespace std; int main(int argc, char* argv[]){ vector v; return 0; } I get these warnings? Compiling... stlTest1.cpp c:\program files\visual studio\my projects\stltest1\stltest1.cpp(11) : warning C4786: 'std::reverse_iterator,std::allocator > const *,std::basic_string,std::allocator >,std::basic_string,std::allocator > const &,std::basic_string,std::allocator > const *,int>' : identifier was truncated to '255' characters in the debug information c:\program files\visual studio\my projects\stltest1\stltest1.cpp(11) : warning C4786: 'std::reverse_iterator,std::allocator > *,std::basic_string,std::allocator >, std::basic_string,std::allocator > &,std::basic_string,std::allocator > *,int>' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::vector,std::allocator >,std::allocator,std::allocator > > >::vector,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(60) : warning C4786: 'std::vector,std::allocator >,std::allocator,std::allocator > > >::~vector,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information stlTest1.obj - 0 error(s), 4 warning(s) It compiles fine if I use vector instead of vector Thanks in advance.
-
Can anybody tell me why when I compile the following program using VCC 6.0 #include #include using namespace std; int main(int argc, char* argv[]){ vector v; return 0; } I get these warnings? Compiling... stlTest1.cpp c:\program files\visual studio\my projects\stltest1\stltest1.cpp(11) : warning C4786: 'std::reverse_iterator,std::allocator > const *,std::basic_string,std::allocator >,std::basic_string,std::allocator > const &,std::basic_string,std::allocator > const *,int>' : identifier was truncated to '255' characters in the debug information c:\program files\visual studio\my projects\stltest1\stltest1.cpp(11) : warning C4786: 'std::reverse_iterator,std::allocator > *,std::basic_string,std::allocator >, std::basic_string,std::allocator > &,std::basic_string,std::allocator > *,int>' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::vector,std::allocator >,std::allocator,std::allocator > > >::vector,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(60) : warning C4786: 'std::vector,std::allocator >,std::allocator,std::allocator > > >::~vector,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information stlTest1.obj - 0 error(s), 4 warning(s) It compiles fine if I use vector instead of vector Thanks in advance.
http://www.codeproject.com/vcpp/stl/stl_without_warnings.asp[^]
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!
-
http://www.codeproject.com/vcpp/stl/stl_without_warnings.asp[^]
[
](http://www.canucks.com)Sonork 100.11743 Chicken Little "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 Within you lies the power for good - Use it!
Thanks, I did pragma it away but I wasn't sure why I was getting the warnings about an indentifier being to long, I didn't know what identifier it was talking about. Now I know to expect lots of stl warning noise which will save a lot of gray hair in the future:) Thanks again.