VC 报错:fatal error C1004
各位高手请教一个问题:用VC编译工程报错:fatal error C1004: unexpected end of file found
说是有.h文件有错,但头文件也检查不出有任何问题。但每每在cmd中用edit命令打开头文件不做任何修改保存后即可编译通过。
我也尝试过工程settings中设置“Not using precompiled haders”,但无济于事,请问怎样才能避免这种情况呢?因为一出现这种情况往往要如此操作近20个头文件
谢谢!
[解决办法]
MSDN里面是这么说的:
To resolve this error, check for the following:
* The default disk drive has insufficient space for temporary files, which require about twice as much space as the source file.
* An #if directive that evaluates to false lacks a closing #endif directive.
* A source file does not end with a carriage return and line feed.
试一下看看