Visual Studio error D8016: #39;/ZI#39; and #39;/Gy#39; command-line options are incompatible(Visual Studio 错误 D8016:“/ZI和“/Gy命令行选项不兼容)
问题描述
我正在处理的项目遇到问题.尽管代码是正确的,但我无法构建它,因为出现以下错误
I am having an issue with a project that I am working on. Despite the fact that the code is right, I can't build it because I got the following error
错误 D8016 '/ZI' 和 '/Gy-' 命令行选项不兼容 LoadReport C:LoadReportLoadReportcl
Error D8016 '/ZI' and '/Gy-' command-line options are incompatible LoadReport C:LoadReportLoadReportcl
我的 Visual Studio 版本是 2015 年.任何想法将不胜感激.
My version of the visual studio is 2015. Any idea would be appreciated.
推荐答案
您选择编辑并继续"(/ZI) 可以在调试期间修复代码,同时也可以禁用功能"- 级别链接"(/Gy-).
You are choosing "Edit and Continue" (/ZI) to be able to fix code during debugging, but also "Disable Function-Level Linking" (/Gy-).
这两者不会一起工作,因为您不能只更改代码中间的一个函数.所以只需选择其中之一,例如将 /Gy- 更改为 /Gy.
Those two will not work together, as you cannot just change one function in the middle of the code. So just choose one of them, like changing /Gy- to /Gy.
这篇关于Visual Studio 错误 D8016:“/ZI"和“/Gy"命令行选项不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 错误 D8016:“/ZI"和“/Gy"命令行选项不兼容
基础教程推荐
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- CString 到 char* 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 初始化列表*参数*评估顺序 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
