Visual C++ 2015错误:cl : Command line error D8016: ‘/ZI‘ and ‘/Gy-‘ command-line options are incompati

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)

如图所示:

Visual C++ 2015错误:cl : Command line error D8016: ‘/ZI‘ and ‘/Gy-‘ command-line options are incompati_第1张图片

Visual C++ 2015错误:cl : Command line error D8016: ‘/ZI‘ and ‘/Gy-‘ command-line options are incompati_第2张图片
就这样就OKKK啦!

你可能感兴趣的:(visual,studio,c++,visual,c++,visual,studio)