gpt4 book ai didi

c++ - 调试和发布配置

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:27:01 26 4
gpt4 key购买 nike

众所周知,在 Visual Studio 中有两种预定义的配置 - Debug 和 Release。自从我开始编程以来,我就一直在使用它们,很快就了解了它们的区别。但是最近我不得不创建自己的配置,现在我有一个问题:这两个配置是否仅由“项目选项”页面中的参数/选项定义/确定?还是微软编译器以特殊方式对待它们?

我的问题是 - 如果我创建一个新配置并从 Debug 或 Release 复制所有设置,我的新配置是否等同于预定义的 Debug/Release 或不完全?

希望我的问题很清楚。

最佳答案

Are those two configurations defined/determined solely by their parameters/options from "project options" page?

是的。

if I create a new configuration and copy all settings from Debug or Release, will my new configuration be equivalent to the predefined Debug/Release ?

是的。

例如,调试配置定义_DEBUG,发布配置启用优化等。

关于c++ - 调试和发布配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3971612/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com