Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release

一世执手 提交于 2019-12-04 22:34:25

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.

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).

According to the documentation

You may safely remove this option from your projects.

Sai Lee

project property "Enable Minimal Rebuild" image

Configuration properties > C\C++ > Code Generation > set the Enable Minimal Rebuild to no,
and there is no warning.

Properties > C\C++ > Code Generation > Enable Minimal Rebuild: DELETE value - and there is no warning.

Happened for me too. Did not manage to fix it through UI. In the end I searched for "MinimalRebuild" in all project files and removed it manually - that helped

UI did not work for me either. In the .vcxproj file search: "MinimalRebuild" I had missed a second one under Debug|Win32

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!