您需要关闭如下优化选项:
Property->c/c++->general->Debug Information Format:改为”‘Program Database for Edit And Continue (/ZI)';
Property->c/c++->Optimization->Optimization:改为“Disabled (/Od)";
Property->c/c++->Optimization->Whole program Optimization:改为”NO“;
If error D8016: '/ZI' and '/Ob1' command-line options are incompatible,Please modify as this :
You need to chnage one of these settings.
/ZI is set by:
Project properties->Configuration Properties->C/C++->General->Debug Information Format
/Ob1 is set by:
Project properties->Configuration Properties->C/C++->Optimization->Inline Function Expansion
看完此文如果对您有帮助请顶一下,方便需要帮助的兄弟