Visual studio 2010: merging libraries and debugging symbols

With visual studio 2010, I create about a dozen small libraries that I have combined into one huge library.

I can not get around the problem of installing debugging information for the combined library, even if I do not use pdb files.

I tried to compile everything with the '/ Z7' options (debugging information in obj files), but the linker is still complaining about the lack of pdb files!

I compile individual files in C ++ with:

C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I..\Logging /Z7 /nologo /W4 /WX /MP /Od /Oy- /D WIN32 /D _DEBUG /D _LIB /D USING_RV /D _CRT_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"D:\Work\branches\DSC_LONS00107672\C++\Libs\Runtime\bin\Win32\Debug\\" /Gd /TP /analyze- /errorReport:queue Alert.cpp ..other...sources... /MP 

I create small libraries with

  C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\Lib.exe /OUT:"D:\Work\branches\DSC_LONS00107672\C++\Bin\Win32\Debug\Runtime.lib" /NOLOGO /MACHINE:X86 D:\Work\branches\DSC_LONS00107672\C++\Libs\Runtime\bin\Win32\Debug\Alert.obj ...other..objects... 

And a huge library with:

 C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\Lib.exe /OUT:"D:\Work\branches\DSC_LONS00107672\output\C++\lib\Debug\DSC.lib" bridging.lib ...other...small...libraries /LIBPATH:D:\Work\branches\DSC_LONS00107672\C++\ThirdParty\zlib\lib\Win32\Debug\ /NOLOGO /MACHINE:X86 D:\Work\branches\DSC_LONS00107672\C++\DSC\bin\Win32\Debug\DSC.obj 

Then I copy the resulting library to the library folder, which can be accessed to link other programs.

But when I link any program to this library, I get a lot of warnings like:

 DSC.lib(ActionType.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'DSC.lib(ActionType.obj)' or at 'D:\src\VS2010\DSC\TestApps\LQ2Tester\bin\x64\Debug\vc100.pdb'; linking object as if no debug info 

And I can not debug the application

What did I miss?

+4
source share

All Articles