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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Names to long...warning...

Names to long...warning...

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiohelpquestion
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.
  • U Offline
    U Offline
    User 1354
    wrote on last edited by
    #1

    I got a problem with the STL. It seems like the names coming from the STL are to long for the browse information. So I need a easy method to get rid of the warnings because they are about 100 and still growing. c:\programme\microsoft visual studio\vc98\include\list(176) : warning C4786: '?rbegin@?$list@PAVCOCIStatementHandle@@V?$allocator@PAVCOCIStatementHandle@@@std@@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$list@PAVCOCIStatementHandle@@V?$ allocator@PAVCOCIStatementHandle@@@std@@@std@@PAVCOCIStatementHandle@@AAPAV4@PAPAV4@H@2@XZ' : identifier was truncated to '255' characters in the browser information i:\eldis3\bib_source\eurotools\eflist.h(45) : see reference to class template instantiation 'std::list >' being compiled i:\eldis3\bib_source\dbaccess\ocidatabase.h(147) : see reference to class template instantiation 'EFList' being compiled Thank you

    C N 2 Replies Last reply
    0
    • U User 1354

      I got a problem with the STL. It seems like the names coming from the STL are to long for the browse information. So I need a easy method to get rid of the warnings because they are about 100 and still growing. c:\programme\microsoft visual studio\vc98\include\list(176) : warning C4786: '?rbegin@?$list@PAVCOCIStatementHandle@@V?$allocator@PAVCOCIStatementHandle@@@std@@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$list@PAVCOCIStatementHandle@@V?$ allocator@PAVCOCIStatementHandle@@@std@@@std@@PAVCOCIStatementHandle@@AAPAV4@PAPAV4@H@2@XZ' : identifier was truncated to '255' characters in the browser information i:\eldis3\bib_source\eurotools\eflist.h(45) : see reference to class template instantiation 'std::list >' being compiled i:\eldis3\bib_source\dbaccess\ocidatabase.h(147) : see reference to class template instantiation 'EFList' being compiled Thank you

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      put this line just before you #include the STL headers: #pragma warning(disable:4786) likewise, you can suppress any warning by just changing the number in this pragma. -c

      1 Reply Last reply
      0
      • U User 1354

        I got a problem with the STL. It seems like the names coming from the STL are to long for the browse information. So I need a easy method to get rid of the warnings because they are about 100 and still growing. c:\programme\microsoft visual studio\vc98\include\list(176) : warning C4786: '?rbegin@?$list@PAVCOCIStatementHandle@@V?$allocator@PAVCOCIStatementHandle@@@std@@@std@@QAE?AV?$reverse_bidirectional_iterator@Viterator@?$list@PAVCOCIStatementHandle@@V?$ allocator@PAVCOCIStatementHandle@@@std@@@std@@PAVCOCIStatementHandle@@AAPAV4@PAPAV4@H@2@XZ' : identifier was truncated to '255' characters in the browser information i:\eldis3\bib_source\eurotools\eflist.h(45) : see reference to class template instantiation 'std::list >' being compiled i:\eldis3\bib_source\dbaccess\ocidatabase.h(147) : see reference to class template instantiation 'EFList' being compiled Thank you

        N Offline
        N Offline
        Nick King
        wrote on last edited by
        #3

        You could try to put the following line at the start of the source file. #pragma warning(disable:4786) This only works for the Microsoft C++ compiler. But beware - this doesn't always work. This is a bug in the compiler - Microsoft admit to this - see this link: http://support.microsoft.com/support/kb/articles/Q167/3/55.ASP. So - no help from Microsoft here. Good Luck.

        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