MFC-Error(1):'/ZI' and '/Gy-' command-line options are incompatible

VS2015, 1>cl : Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible

解决办法:

右键点击工程——》properties-->C/C++——>GeneralDebug -->Information Format-->select:Program Database(/Zi)

MFC-Error(1):'/ZI' and '/Gy-' command-line options are incompatible