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. warning C4786:

warning C4786:

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingtutorialquestion
4 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.
  • Z Offline
    Z Offline
    zack
    wrote on last edited by
    #1

    Does anyone know how to prevent the really annoying compiler warning C4768 ('identifier' : identifier was truncated to 'number' characters in the debug information)? (normal when working with STL) I want to use warning level 4 and the #pragma warning(disable: 4768) doesn't work, or not everytime. thanks :confused: zack

    T J 2 Replies Last reply
    0
    • Z zack

      Does anyone know how to prevent the really annoying compiler warning C4768 ('identifier' : identifier was truncated to 'number' characters in the debug information)? (normal when working with STL) I want to use warning level 4 and the #pragma warning(disable: 4768) doesn't work, or not everytime. thanks :confused: zack

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      The #pragma works, at least for me. You just have to put it before #including STL headers. Usually, I place it at the top of stdafx.h Tomasz Sowinski -- http://www.shooltz.com

      Z 1 Reply Last reply
      0
      • T Tomasz Sowinski

        The #pragma works, at least for me. You just have to put it before #including STL headers. Usually, I place it at the top of stdafx.h Tomasz Sowinski -- http://www.shooltz.com

        Z Offline
        Z Offline
        zack
        wrote on last edited by
        #3

        Now I rebuilded the app putting the #pragma warning(disable : 4786) before everything, and it seems to work. thanks you Tomasz :) :)

        1 Reply Last reply
        0
        • Z zack

          Does anyone know how to prevent the really annoying compiler warning C4768 ('identifier' : identifier was truncated to 'number' characters in the debug information)? (normal when working with STL) I want to use warning level 4 and the #pragma warning(disable: 4768) doesn't work, or not everytime. thanks :confused: zack

          J Offline
          J Offline
          John M Drescher
          wrote on last edited by
          #4

          use http://www.codeproject.com/tools/stlfilt.asp it gets rid of all of these errors.

          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