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

VC 报错:fatal error C1004解决办法

2012-01-19 
VC 报错:fatal error C1004各位高手请教一个问题:用VC编译工程报错:fatalerrorC1004:unexpectedendoffilef

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.
试一下看看

热点排行