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 C4503

warning C4503

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++cssvisual-studio
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.
  • V Offline
    V Offline
    valerie99
    wrote on last edited by
    #1

    hello....not sure why the #pragma disable isn't working.... the app has 14 warning of C4503, I've checked the source file that been complant about, here is the first 4 line of abscommbuffer.h #if !defined( __ABS_COMMBUFFER_H__ ) #define __ABS_COMMBUFFER_H__ #pragma warning( disable : 4786 ) #pragma warning( disable : 4503 ) it's other's app, I am not sure what exactly is this line doing: std::map< std::string, std::list< std::string > > mapLists; and the warning message: c:\program files\microsoft visual studio\vc98\include\xtree(199) : warning C4503: 'rbegin' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,class std::allocator >,struct std::pair,class std::allocator > const ,class std::list,class std::allocator >,class std::allocator,class std::allocator > > > >,struct std::map,class std::allocator >,class std::list,class std::allocato r >,class std::allocator,class std::allocator > > >,struct std::less,class std::allocator > >,class std::allocato r,class std::allocator >,class std::allocator,class std::allocator > > > > >::_Kfn,struct std::less,class std::allocator > >,class std::allocator,class std::allocator >,class std::allocator,class std::allocator > > > > >' being compiled c:\dev\c++\billing\taxreport\abscommbuffer.h(113) : see reference to class template instantiation 'std::map,class std::allocator >,class std::list,class std::allocator >,class

    U 1 Reply Last reply
    0
    • V valerie99

      hello....not sure why the #pragma disable isn't working.... the app has 14 warning of C4503, I've checked the source file that been complant about, here is the first 4 line of abscommbuffer.h #if !defined( __ABS_COMMBUFFER_H__ ) #define __ABS_COMMBUFFER_H__ #pragma warning( disable : 4786 ) #pragma warning( disable : 4503 ) it's other's app, I am not sure what exactly is this line doing: std::map< std::string, std::list< std::string > > mapLists; and the warning message: c:\program files\microsoft visual studio\vc98\include\xtree(199) : warning C4503: 'rbegin' : decorated name length exceeded, name was truncated c:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,class std::allocator >,struct std::pair,class std::allocator > const ,class std::list,class std::allocator >,class std::allocator,class std::allocator > > > >,struct std::map,class std::allocator >,class std::list,class std::allocato r >,class std::allocator,class std::allocator > > >,struct std::less,class std::allocator > >,class std::allocato r,class std::allocator >,class std::allocator,class std::allocator > > > > >::_Kfn,struct std::less,class std::allocator > >,class std::allocator,class std::allocator >,class std::allocator,class std::allocator > > > > >' being compiled c:\dev\c++\billing\taxreport\abscommbuffer.h(113) : see reference to class template instantiation 'std::map,class std::allocator >,class std::list,class std::allocator >,class

      U Offline
      U Offline
      User 1724819
      wrote on last edited by
      #2

      C++ exception handling was used but /EHsc was not selected. When the /EHsc option has not been enabled, an object with automatic storage in the frame, between the function doing the throw and the function catching the throw, will not be destroyed. However, an object with automatic storage created in a try or catch block will be destroyed.

      V J 2 Replies Last reply
      0
      • U User 1724819

        C++ exception handling was used but /EHsc was not selected. When the /EHsc option has not been enabled, an object with automatic storage in the frame, between the function doing the throw and the function catching the throw, will not be destroyed. However, an object with automatic storage created in a try or catch block will be destroyed.

        V Offline
        V Offline
        valerie99
        wrote on last edited by
        #3

        but after I enabled the /EHsc option in project setting, I still get 14 same warnings.......not sure why is that. Thank you for your time

        1 Reply Last reply
        0
        • U User 1724819

          C++ exception handling was used but /EHsc was not selected. When the /EHsc option has not been enabled, an object with automatic storage in the frame, between the function doing the throw and the function catching the throw, will not be destroyed. However, an object with automatic storage created in a try or catch block will be destroyed.

          J Offline
          J Offline
          Jose Lamas Rios
          wrote on last edited by
          #4

          beffekt deivsec wrote: C++ exception handling was used but /EHsc was not selected. That's C4530, not C4503... -- jlr http://jlamas.blogspot.com/[^]

          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