Thread: VC++ 6 question: browsing into a library

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    124

    VC++ 6 question: browsing into a library

    I have the following situation:

    I have a library (.lib and .dll) that I also have the source code to. I have an external program that uses this library. I am getting an internal error from a function inside the library and I want to debug into it from my external program. The library has a .dsw file but of course it produces the .lib and .dll so I can't just add my source files to it and compile.

    So, my question is: Is there anyway to get the browse info of the library's workspace into the workspace of my program so that I can step through the library's source code? Alternatively, is there anyway to change a workspace from library to executeable so that I can add my source files to it, compile and debug that way?

    Thanks.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    If it is a 3rd party library it should have already been debugged. Otherwise if they did not include debug information in the lib at compile time and they have not given you the debug symbols, then no, there isn't a way to browse it.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    124
    I have the source code to the library and I can compile and build it at will. I know there's no problem with the library, but I want to know exactly where the error happens. I can build debug info into the library but I don't know how to use that info in another project.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    After compiling the lib with debug symbols, you will be able to step through it. Just place a breakpoint at a place of call and then step into

    EDIT: Oh... and make sure the library source code path is in the include list
    Last edited by Mario F.; 09-12-2006 at 01:08 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    124
    I still can't get it to work.

    I have the .bsc file from the library in the same directory as my workspace and project.

    Where do I add the path to the library's source? Is it under resources and "Additional Resource Include Paths"?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. static data structure in a library
    By melight in forum C Programming
    Replies: 6
    Last Post: 01-10-2009, 11:12 AM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. Library Wrapper
    By cusavior in forum C Programming
    Replies: 3
    Last Post: 03-25-2008, 10:27 AM
  4. Replies: 19
    Last Post: 01-12-2006, 11:04 AM
  5. n00b question regarding the Map Class in the STL library
    By Axegrinder#9 in forum C++ Programming
    Replies: 2
    Last Post: 12-17-2005, 09:40 PM