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. STL (silly) Warings

STL (silly) Warings

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingquestion
6 Posts 4 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.
  • J Offline
    J Offline
    Jonathan de Halleux
    wrote on last edited by
    #1

    I get lots of warnings when working with STL in debug. In fact I always get the same: warning C4786: ... identifier was truncated to '255' characters in the debug information I thought that including a pragma like #pragma warning(disable: 4786) would the twist. But I still get the warnings. Anybody has a (miracle) solution? Jonathan de Halleux, Belgium.

    J L J 3 Replies Last reply
    0
    • J Jonathan de Halleux

      I get lots of warnings when working with STL in debug. In fact I always get the same: warning C4786: ... identifier was truncated to '255' characters in the debug information I thought that including a pragma like #pragma warning(disable: 4786) would the twist. But I still get the warnings. Anybody has a (miracle) solution? Jonathan de Halleux, Belgium.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Put the #pragma before including any STL header. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      1 Reply Last reply
      0
      • J Jonathan de Halleux

        I get lots of warnings when working with STL in debug. In fact I always get the same: warning C4786: ... identifier was truncated to '255' characters in the debug information I thought that including a pragma like #pragma warning(disable: 4786) would the twist. But I still get the warnings. Anybody has a (miracle) solution? Jonathan de Halleux, Belgium.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Check out this (http://www.paulgrenyer.co.uk/pglibrary/disable4786_8h-source.html[^]) link to defeat this annoying problem once and for all. J

        J 1 Reply Last reply
        0
        • J Jonathan de Halleux

          I get lots of warnings when working with STL in debug. In fact I always get the same: warning C4786: ... identifier was truncated to '255' characters in the debug information I thought that including a pragma like #pragma warning(disable: 4786) would the twist. But I still get the warnings. Anybody has a (miracle) solution? Jonathan de Halleux, Belgium.

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          check this[^] out. It is freeware with source-code (pearl script) and works like a charm. For switching off warnings via a #pragma, please read MSKnowledgebase entry Q167355. - It simply does not work.

          J 1 Reply Last reply
          0
          • L Lost User

            Check out this (http://www.paulgrenyer.co.uk/pglibrary/disable4786_8h-source.html[^]) link to defeat this annoying problem once and for all. J

            J Offline
            J Offline
            Jonathan de Halleux
            wrote on last edited by
            #5

            Where do you have to insert it ? Jonathan de Halleux, Belgium.

            1 Reply Last reply
            0
            • J jhwurmbach

              check this[^] out. It is freeware with source-code (pearl script) and works like a charm. For switching off warnings via a #pragma, please read MSKnowledgebase entry Q167355. - It simply does not work.

              J Offline
              J Offline
              Jonathan de Halleux
              wrote on last edited by
              #6

              Thanks for the tip ! It's great ! Jonathan de Halleux, Belgium.

              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