从 IDE 禁用 C++ PDB 生成 [英] Disable C++ PDB generation from the IDE

查看:35
本文介绍了从 IDE 禁用 C++ PDB 生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要抑制调试符号的生成.项目属性/配置属性/c/c++/通用/调试信息格式下的可用选项相当于/Z7、/Zi 和/ZI - 我找不到完全省略/Zx 标志的方法.

We need to surpress generation of debug symbols. The options availble under project properties/ configuration properties / c/c++ / general / debug information format, are equivalent to /Z7, /Zi and /ZI - I can't find a way to omit the /Zx flag entirely.

不同于这里的情况 - 我们正在构建来自 IDE.

Unlike the situation here - we're building from the IDE.

我使用的是 Visual Studio 2010,手头的项目是一个静态库.

I'm using visual studio 2010, and the project at hand is a static library.

这是我安装 VS2012 的视图.这是安装问题吗??您的调试信息格式选项是否不同?

Here's the view from my installation of VS2012. Is this some installation issue?? Are your Debug-Information-Format options different?

推荐答案

您可以手动删除它:

  • 选择的配置属性"C/C++ >一般>调试信息格式"
  • 点击DEL

您还需要禁用为链接器生成调试信息

Also you need to disable generating Debug info for Linker

  • 选择的配置属性"链接器调试>生成调试信息"设置为

  • 同时在链接器中将 Profile" 设置为 No" >高级,否则您可能仍会看到生成的 PDB 文件!
  • Also set "Profile" to "No" in Linker > Advanced or you may still see PDB files generated!

这篇关于从 IDE 禁用 C++ PDB 生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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