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?
相关问题
- How to deploy Angular 6 app on Azure using Visual
- Code Analysis is not working with ruleset from nug
- VS2017 repeatedly appends GlobalSection to solutio
- Totally Blank Unity / Microsoft Store Build fails
- How to include pre-release packages with MSBuild r
相关文章
- Calling a .Net Framework 4 (or Mono) assembly from
- What does -Ot flag stand for in Visual Studio 2017
- Optional appsettings.local.json in (new format) vi
- How to make QtLinguist shipped with Qt 5.9.1 work?
- How do I change the debug port in Visual Studio 20
- Visual Studio 2017 disable Dependency Validation
- Visual Studio Profiler showing “[broken]” as funct
- How to add 'src' folder at solution root
just add this above your deprecated function
example
According to the documentation
Try selecting
<inherit from parent or project defaults>
for theEnable Minimal Rebuild
option (underC/C++
>Code Generation
). After this, the option should showNo (/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)
.UI did not work for me either. In the .vcxproj file search: "MinimalRebuild" I had missed a second one under Debug|Win32
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
Properties > C\C++ > Code Generation > Enable Minimal Rebuild: DELETE value - and there is no warning.