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. A Question about lib files

A Question about lib files

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelpquestion
10 Posts 4 Posters 1 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.
  • M Offline
    M Offline
    mt_samiei
    wrote on last edited by
    #1

    Dear all I add one lib file to my VC++ 6 project. and want to debug my project. But I can not add debug information of lib file to debug information of my project. I have the source code of lib file also. If you know how I can remove this error please let me know. Regards Monhi

    J M 2 Replies Last reply
    0
    • M mt_samiei

      Dear all I add one lib file to my VC++ 6 project. and want to debug my project. But I can not add debug information of lib file to debug information of my project. I have the source code of lib file also. If you know how I can remove this error please let me know. Regards Monhi

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      What happens when you try to debug ? What error are you getting ?


      Jonathan Wilkes Darka[Xanya.net]

      M 1 Reply Last reply
      0
      • J Jonathan Darka

        What happens when you try to debug ? What error are you getting ?


        Jonathan Wilkes Darka[Xanya.net]

        M Offline
        M Offline
        mt_samiei
        wrote on last edited by
        #3

        I should remove "Use program database" option to compile the code, In this situation I cannot debug the program. If I make that option active then I get following error. atapid.lib(tapireq.obj) : fatal error LNK1202: "D:\users\TCMon_1\Debug\vc60.pdb" is missing debugging information for referencing module I should find one way to add debug information of lib file to project which I want to add lib file to that. Regards Monhi

        J R 2 Replies Last reply
        0
        • M mt_samiei

          I should remove "Use program database" option to compile the code, In this situation I cannot debug the program. If I make that option active then I get following error. atapid.lib(tapireq.obj) : fatal error LNK1202: "D:\users\TCMon_1\Debug\vc60.pdb" is missing debugging information for referencing module I should find one way to add debug information of lib file to project which I want to add lib file to that. Regards Monhi

          J Offline
          J Offline
          Jonathan Darka
          wrote on last edited by
          #4

          Have you tried rebuilding the entire project, just in case things have gotten a little confused ? regards,


          Jonathan Wilkes Darka[Xanya.net]

          M 1 Reply Last reply
          0
          • J Jonathan Darka

            Have you tried rebuilding the entire project, just in case things have gotten a little confused ? regards,


            Jonathan Wilkes Darka[Xanya.net]

            M Offline
            M Offline
            mt_samiei
            wrote on last edited by
            #5

            Yes I do it But It does not work. Several times I do it.

            1 Reply Last reply
            0
            • M mt_samiei

              I should remove "Use program database" option to compile the code, In this situation I cannot debug the program. If I make that option active then I get following error. atapid.lib(tapireq.obj) : fatal error LNK1202: "D:\users\TCMon_1\Debug\vc60.pdb" is missing debugging information for referencing module I should find one way to add debug information of lib file to project which I want to add lib file to that. Regards Monhi

              R Offline
              R Offline
              Rajkumar R
              wrote on last edited by
              #6

              Hi, I think this is because both the application and library refers to the same debug info file "VC60.pdb" and build seperately causing only the application's debug information stored. Since you have the code for library, in the project setting change the Debug database file name to the project name, say atapid.pdb rather than vc60.pdb. or do the same for your application yourApp.pdb. Best regards Rajkumar

              M 1 Reply Last reply
              0
              • R Rajkumar R

                Hi, I think this is because both the application and library refers to the same debug info file "VC60.pdb" and build seperately causing only the application's debug information stored. Since you have the code for library, in the project setting change the Debug database file name to the project name, say atapid.pdb rather than vc60.pdb. or do the same for your application yourApp.pdb. Best regards Rajkumar

                M Offline
                M Offline
                mt_samiei
                wrote on last edited by
                #7

                May you please give me the place which I can change debug information file name in visual C++ 6.00. In which menu. Regards Monhi

                R 1 Reply Last reply
                0
                • M mt_samiei

                  May you please give me the place which I can change debug information file name in visual C++ 6.00. In which menu. Regards Monhi

                  R Offline
                  R Offline
                  Rajkumar R
                  wrote on last edited by
                  #8

                  In project->settings->link(tab)->customize(in category list box)->program database name(edit box)

                  M 1 Reply Last reply
                  0
                  • R Rajkumar R

                    In project->settings->link(tab)->customize(in category list box)->program database name(edit box)

                    M Offline
                    M Offline
                    mt_samiei
                    wrote on last edited by
                    #9

                    Thank you for your help.

                    1 Reply Last reply
                    0
                    • M mt_samiei

                      Dear all I add one lib file to my VC++ 6 project. and want to debug my project. But I can not add debug information of lib file to debug information of my project. I have the source code of lib file also. If you know how I can remove this error please let me know. Regards Monhi

                      M Offline
                      M Offline
                      Md Ali Naser Khan
                      wrote on last edited by
                      #10

                      Run the source code of the lib file in debug mode. Use the created lib file in your project and rebuild the project. Now I think you can debug the lib from your project.

                      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