阅读:1246回复:2
大侠帮助小弟看看这个错误该怎么解决啊?谢谢!
fatal error C1010: unexpected end of file while looking for precompiled header directive
这个是MSDN对该错误的解释: A precompiled header was specified, but it did not contain a precompiled header directive. This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file. MSDN到是看懂了可是还是不会解决错误,呵呵,谢谢大侠了 |
|
|
沙发#
发布于:2005-05-22 09:37
在你的CPP开头处加上
#include \"stdafx.h\" 要不,在Project-settings中, 在左边选中有问题的CPP文件,选C++-Category-Precompiled Headers-Not using precompiled headers. |
|
|
板凳#
发布于:2005-05-22 13:07
在你的CPP开头处加上 这样子就OK |
|
|