vc提示unexpected end of file found的原因分析
2015-05-21 14:57
986 查看
本文较为详细的分析了vc提示unexpected end of file found的原因。分享给大家供大家参考。具体分析如下:
预编译出错,检查#if与#endif是否个数一致
Error executing cl.exe 则检查你的程序是否已经运行,这说明编译可能已经通过,程序仍在内存中
可能是类后没有加分号,或上面的漏了个“{”号或“}”号。
1. 如果你的部分代码从某些网页拷贝,最好先拷到写字板,在从写字板粘贴到VC中。
2. 如果你VC++工程包括了一些C函数,你需要把它们声明到extern "C"{}的括弧之中。以向编译器表明你使用了C函数及其调用规则。
3. 可以使用ShowMan(fans)提供的办法,取消预编译头,即直接支持C和C++混合编译,但这样,每次编译的速度减慢。
希望本文所述对大家的VC程序设计有所帮助。
您可能感兴趣的文章:
相关文章推荐
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题 .
- setjmp函数创建简单任务调度时VC编译出错!fatal error C1004: unexpected end of file found
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- unexpected end of file found in comment
- fatal error RC1004: unexpected end of file found处理方法
- SHELL syntax error:unexpected end of file 提示错误
- unexpected end of file found
- fatal error C1071: unexpected end of file found in comment(Mark ZZ)
- fatal error RC1004: unexpected end of file found处理方法
- VC错误:编译程序中出现“fatal error C1010: unexpected end of file”
- VS2012 error C1071: unexpected end of file found in comment
- 使用VC6.0编译C++代码的时候报错:fatal error C1071: unexpected end of file found in comment(Mark ZZ)
- 使用VC6.0编译C++代码的时候报错:fatal error C1071: unexpected end of file found in comment(Mark ZZ)
- VC错误:编译程序中出现“fatal error C1010: unexpected end of file”
- 总结一些关于fatal error RC1004: unexpected end of file found错误的解决方法
- SHELL syntax error:unexpected end of file 提示错误
- fatal error C1004: unexpected end of file found
- 使用VC6.0编译C++代码的时候报错:fatal error C1071: unexpected end of file found in comment(Mark ZZ)