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. Getting rid of the following warnings..

Getting rid of the following warnings..

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++cssvisual-studiodebugging
3 Posts 3 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.
  • P Offline
    P Offline
    pl_kode
    wrote on last edited by
    #1

    I am reading a file and getting the key and values. I am putting the keys and values in the map. When I run the program I get many number of warnings like... warningC4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const , std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocato r > >,std::allocator,std::allocator > > >' being compiled F:\Main Project\Coding\DLL_logging_Utility\properties.cpp(41) : see reference to class template instantiation 'std::map,std::allocator >,std::basic_string,std::a llocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' being compiled THANKS

    C T 2 Replies Last reply
    0
    • P pl_kode

      I am reading a file and getting the key and values. I am putting the keys and values in the map. When I run the program I get many number of warnings like... warningC4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const , std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocato r > >,std::allocator,std::allocator > > >' being compiled F:\Main Project\Coding\DLL_logging_Utility\properties.cpp(41) : see reference to class template instantiation 'std::map,std::allocator >,std::basic_string,std::a llocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' being compiled THANKS

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Never heard of google, do you ? See here[^] what you can find with a very basic search.

      Cédric Moonen Software developer
      Charting control [v1.4]

      1 Reply Last reply
      0
      • P pl_kode

        I am reading a file and getting the key and values. I am putting the keys and values in the map. When I run the program I get many number of warnings like... warningC4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const , std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocato r > >,std::allocator,std::allocator > > >' being compiled F:\Main Project\Coding\DLL_logging_Utility\properties.cpp(41) : see reference to class template instantiation 'std::map,std::allocator >,std::basic_string,std::a llocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >' being compiled THANKS

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        i will strongly second Cedric. you already asked too much dumb question without event seeking yourself a bit about how to solve them first. so in brief, GOOGLE IS YOUR FRIEND. don't feel lazy to ask it ! ok. then, either recompile in release mode to have these disapear, or add this in a header that is defining those template classes:

        // Identifier was truncated to '255' characters in the debug information
        #pragma warning (disable: 4786)
        

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        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