cl : Command line error D8016: ‘/ZI’ and ‘/Gy-’ command-line options are incompatible
解决方案:
第一步:
project右键 -> properties -> C/C++ -> Debug Information Format -> select:Program Database(/Zi)
第二步:
C/C++ -> Code Generation -> Enable Function-Level Linking -> Yes(/Gy)
如图所示:
就这样就OKKK啦!