您的位置:首页 > 运维架构

error C2857: '#include' statement specified with the /Ycstdafx.h command-line option 解决方法

2016-08-14 19:00 316 查看
在VC6.0中,如果stdafx.cpp中不包含stdafx.h,而是包含其他的头文件,就会出现下面的错误提示

error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file

解决这个问题,仅仅在C++选项中,Precompiled Header>Use Precompiled Header file 中填写其他的头文件是不能解决的。

还需要手动修改工程文件*.dsp,把其中的Yc stdafx.h修改为Yc xx.h , Yu stdafx,h 修改为Yu xx.h;

这样重新编译才能OK。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐