Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unknown warnings

Unknown warnings

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiographicsdebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Burl D
    wrote on last edited by
    #1

    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.

    P 1 Reply Last reply
    0
    • B Burl D

      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.

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      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!

      B 1 Reply Last reply
      0
      • P PJ Arends

        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!

        B Offline
        B Offline
        Burl D
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups