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。
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。
相关文章推荐
- 4000 ValueError: 'The specified size contains a dimension with value <= 0'的解决方法
- mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- Concurrency violation: the DeleteCommand affected 0,一个解决dataset并发删除冲突的方法
- IIS出现The specified module could not be found的解决方法
- Eclipse中resource is out of sync with the file system 解决方法
- IIS出现The specified module could not be found的解决方法
- There is no Citrix MetaFrame server configured on the specified address错误的解决方法
- 在VISTA中,使用RUNAS命令运行IE7时报错错误“The RUNAS command is not supported”的解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法
- IIS出现The specified module could not be found解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法
- There is no Citrix MetaFrame server configured on the specified address错误的解决方法
- No row with the given identifier exists 解决方法
- Web服务器The specified module could not be found错误解决方法
- No row with the given identifier exists 解决方法
- resource busy and acquire with nowait specified解决方法
- IIS出现The specified module could not be found解决方法(zhuan)
- Connector/Net 连接 MySQL远程服务器出现 "Unable to connect to any of the specified MySQL hosts" 解决方法
- RAC安装时,报The specified nodes are not clusterable 的解决方法