Menu

#52 VC8: static debug lib doesn't generate appropriate .pdb file

1.12.0
open
nobody
None
5
2007-11-13
2007-11-13
Milan
No

This issue is only present in Microsoft Visual C/C++ 8 (Visual Studio 2005) build of the library.

When whole CPPUnit library is build for MSVC8, output lib folder will contain static and DLL libraries. Debug version of DLL will have its own .pdb file - cppunitd_dll.pdb.

However, debug version of static library will not have such .pdb file generated. It will generate .pdb, but only by using default options. This .pdb will get default name (vc80.pdb) and will be left behind in build folder (will not be copied to /lib).

Later, any project including CPPUnit static lib will generate warnings on how debugging information can't be found (it will actually seek for vc80.pdb in all available Library folders).

My current solution to this problem:
Before I build CppUnitLibraries.dsw, I modify cppunit project properties. I select Debug configuration and then modify Configuration Properties/C++/Output Files. I set Program Database File Name to '..\..\lib\cppunitd.pdb'. That way, pdb will be generated with appropriate file name and will be put to output lib folder when project is built.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.