#include "stdafx.h"_预编译头文件

#include "stdafx.h"_预编译头文件

如果在编译时不想要  #include "stdafx.h"  预编译头文件可以做如下设置、

Project  ->  Setting  -> C/C++  ->Category  选择Precompile Headers ->选择Not using precompiled headers

 

然后就可以把#include "stdafx.h"删除,编译通过

亲测有效

原文地址:https://www.cnblogs.com/gaoquanning/p/3064896.html