首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-09-06 
无法打开包括文件:“stdafx.h”: No such file or directory工程中明明引入了stdafx.h和stdafx.cpp,但是在头

无法打开包括文件:“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工程外,都不使用预编译头。

热点排行