从 IDE 禁用 C++ PDB 生成

编程入门 行业动态 更新时间:2024-10-09 17:26:52
本文介绍了从 IDE 禁用 C++ PDB 生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我们需要抑制调试符号的生成.项目属性/配置属性/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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 16:14:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1157059.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:IDE   PDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!