在VC6 ++中为* .lib项目创建PDB文件 [英] Create PDB Files for *.lib Projects in VC6++

查看:581
本文介绍了在VC6 ++中为* .lib项目创建PDB文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



i我正在使用VC6 ++。

我的工作区中有几个* .lib项目和一些* .exe项目。

对于* .exe项目PDB-Files是正常生成的(我来自VC2010所以我是VC6的新手)但是当我编译* .lib项目时,没有生成PDB文件。 br />
我已经检查了编译器的-ZI,但-ZI是活动的。



感谢您的任何建议。

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.

推荐答案

如果使用/ Z7,调试信息将嵌入到.obj文件中,然后嵌入到.lib中。



https://msdn.microsoft。 com / zh-CN / library / 958x11bc.aspx
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


转到项目设置,链接。选择类别:常规并选中生成调试信息框。

之后,您可以选择类别调试并更改有关调试文件的设置。



另请参阅 / PDB(使用程序数据库)Visual Studio 6.0

[ ^ ]
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
[^]


这篇关于在VC6 ++中为* .lib项目创建PDB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆