命令行警告 D9035:选项“Gm"已被弃用,将在未来版本中删除 [英] Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release

查看:29
本文介绍了命令行警告 D9035:选项“Gm"已被弃用,将在未来版本中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Visual Studio 2017 最新更新 15.9.2 构建我的项目时,我收到警告消息cl:命令行警告 D9035:选项‘Gm’已被弃用,并将在未来版本中删除".如何解决此警告?

I am getting the warning message "cl : Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release" while building my project with Visual Studio 2017 latest update 15.9.2. How to resolve this warning?

推荐答案

尝试为 Enable Minimal Rebuild 选项选择 (在C/C++ > 代码生成).在此之后,该选项应以粗体显示No (/Gm-), not.确保为您的项目(您可以在解决方案中有多个项目)以及它们继承的所有属性页执行此操作.

Try selecting <inherit from parent or project defaults> for the Enable Minimal Rebuild option (under C/C++ > Code Generation). After this, the option should show No (/Gm-), not in bold. Make sure you do this for your project(s) (you could have several projects in the solution), and all property pages they inherit from.

我在使用 Visual Studio 2019 时遇到了同样的问题,最后问题出在我在同一个解决方案中的第二个项目中,该项目的选项设置为 Yes (/Gm).

I had the same problem using Visual Studio 2019, in the end the problem was in a second project I had in the same solution, that had the option set to Yes (/Gm).

这篇关于命令行警告 D9035:选项“Gm"已被弃用,将在未来版本中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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