读书人

没法打开包括文件:“stdafx.h”: No s

发布时间: 2012-09-06 10:37:01 作者: rapoo

无法打开包括文件:“stdafx.h”: No such file or directory

工程中明明引入了stdafx.h和stdafx.cpp,但是在头文件里面也写明了#include <stdafx.h>就报错:

无法打开包括文件:“stdafx.h”: No such file or directory

注:而且此时环境配置是:属性→C/C++→预编译头→“不使用预编译头”。


解决方案:去掉#include <stdafx.h>,一般出MFC工程外,都不使用预编译头。

读书人网 >编程

热点推荐