Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello,

i am using VC6++.
I have several *.lib projects in my workspace and some *.exe projects.
For the *.exe projects PDB-Files were generated normally (im coming from VC2010 so i am really new to VC6) but when i compile the *.lib projects, no PDB Files are generated.
I've checked the compilerswitches for -ZI, but -ZI is active.

Thanks for any advice.
Posted

If you use /Z7, the debug info will be embedded into the .obj file, and then embedded into the .lib.

https://msdn.microsoft.com/en-us/library/958x11bc.aspx
 
Share this answer
 
Comments
C3D1 8-Sep-15 9:12am    
Thank you, but i want to create PDB-Files and don't include the debug info into the .lib file.
Go to Project Settings, Link. Select the Category: "General" and check the "Generate Debug Info" box.
After that, you can select the Category "Debug" and change settings about the debug file.

Take a look as well at /PDB (Use Program Database) Visual Studio 6.0
[^]
 
Share this answer
 
v2
Comments
C3D1 8-Sep-15 9:15am    
Sorry, could you explain that a little bit more? I'm a little bit confused at the moment...
Leo Chapiro 8-Sep-15 9:49am    
Have you took a look at the link I added:
By default, when the Generate Debug Info (/DEBUG) option is specified, the linker creates a program database (PDB), which holds debugging information. If Generate Debug Info (/DEBUG) is not specified, the Use Program Database (/PDB) option is ignored.
To find this option in the development environment, click Settings on the Project menu. Then click the Link tab, and click Customize in the Category box.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900