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. MAP files and lines number information

MAP files and lines number information

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiondebugging
5 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.
  • C Offline
    C Offline
    ComplexLifeForm
    wrote on last edited by
    #1

    Hi, How do I generate line number information in the MAP files for C++/VC++ projects? I am using Visual C++ 2005 and could not find any option to generate such information. VC++ 6.0 had an option for generating line number information in the MAP file. This option is present on C++ tab, Debug info drop-down in VC++ 6.0 Thanks and Regards.

    M S 2 Replies Last reply
    0
    • C ComplexLifeForm

      Hi, How do I generate line number information in the MAP files for C++/VC++ projects? I am using Visual C++ 2005 and could not find any option to generate such information. VC++ 6.0 had an option for generating line number information in the MAP file. This option is present on C++ tab, Debug info drop-down in VC++ 6.0 Thanks and Regards.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      It looks like the /MAPINFO:LINES linker option has been removed starting with VS 2005. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • C ComplexLifeForm

        Hi, How do I generate line number information in the MAP files for C++/VC++ projects? I am using Visual C++ 2005 and could not find any option to generate such information. VC++ 6.0 had an option for generating line number information in the MAP file. This option is present on C++ tab, Debug info drop-down in VC++ 6.0 Thanks and Regards.

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        May I ask what you need the MAP file for? Many people are under the mistaken impression that to debug a release build you need a MAP file, whereas in reality you can just enable debug information in your release build and use your debugger (almost) as per normal.

        Steve

        P C 2 Replies Last reply
        0
        • S Stephen Hewitt

          May I ask what you need the MAP file for? Many people are under the mistaken impression that to debug a release build you need a MAP file, whereas in reality you can just enable debug information in your release build and use your debugger (almost) as per normal.

          Steve

          P Offline
          P Offline
          Peter Weyzen
          wrote on last edited by
          #4

          Every now and then when I am looking at crash dumps from the field.... if the debugger's not helping (using a PDB), sometimes the map has a clue.

          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

          1 Reply Last reply
          0
          • S Stephen Hewitt

            May I ask what you need the MAP file for? Many people are under the mistaken impression that to debug a release build you need a MAP file, whereas in reality you can just enable debug information in your release build and use your debugger (almost) as per normal.

            Steve

            C Offline
            C Offline
            ComplexLifeForm
            wrote on last edited by
            #5

            Map files does have information at times which can be useful. More over I receive a screen shot from customers or beta testers which has just offset information. Using map files and line number information is sometimes easier to locate the crash location as discussed in some of the articles on this site.

            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