Share via


Error_D8016_'/ZI' and '/Gy-' command-line options are incompatible

Question

Wednesday, March 30, 2016 3:43 PM

In a MFC app, VS2015, I am getting this error (worked fine with VS2010).

Assuming /Gy is "Edit and Continue", I tried to disable it, but cannot find it. Here is a screenshot of the "Options": http://screencast.com/t/VYVkuf43POqn

Vaclav

All replies (4)

Friday, April 1, 2016 7:15 AM ✅Answered | 1 vote

I've experienced the same issue.  

Go to project properties -> C/C++ -> All options

/Gy and /ZI options both can be found here.

The property name may not be the exact same as above since I am not using the english VS2015 edition.


Thursday, March 31, 2016 4:46 AM

Hi vjedlicka,

Is this project created by Visual Studio 2010 or Visual Studio 2015? If it created by VS2010, please try create a new project with VS2015 to make sure whether this problem related to the specific project or all projects.

If just this specific project, do you upgrade it from VS2010 to VS2015? If yes, I suggest you upgrade it from VS2010 -> VS2012 -> VS2013 -> VS2015. Since this steps can reduce upgrade rate when upgrading. If no, I suggest you upgrade it with above steps to make sure your project can compatible with Visual Studio 2015.

And you also can create a new project with Visual Studio 2015 and move the original project files to the new project one by one to make sure which file causes this issue and then check the code and settings for that file to troubleshoot this issue.

If all default project has this issue, the problem mostly related to Visual Studio itself. Please try check whether you have installed the latest update. If not installed, please download and install from below link.

https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

Then please try reset/repair your Visual Studio to check whether this issue can be fixed.

Best Regards,
Weiwei


Tuesday, April 5, 2016 4:16 PM

Yes, that helps. Thanks!

Vaclav

Vaclav


Friday, May 6, 2016 3:01 PM

Hi,

I just updated MVS today and fund the same problem....

Solved with: Menu [/Project/Properties] 

then C,C++/All Options/Debug Information Format

change it to Program Database (/Zi)

It Works for me

Best Regards

Américo!