2024年5月9日发(作者:)

fatal error C1003: error count exceeds number;

stopping compilation

中文对照:(编译错误)错误太多,停止编

分析:修改之前的错误,再次编译

fatal error C1004: unexpected end of file

found

中文对照:(编译错误)文件未结束

分析:一个函数或者一个结构定义缺少“}”、

或者在一个函数调用或表达式中括号没有

配对出现、或者注释符“/*„*/”不完整等

fatal error C1083: Cannot open include file:

'xxx': No such file or directory

中文对照:(编译错误)无法打开头文件xxx:

没有这个文件或路径

分析:头文件不存在、或者头文件拼写错误、

或者文件为只读

fatal error C1903: unable to recover from

previous error(s); stopping compilation

中文对照:(编译错误)无法从之前的错误

中恢复,停止编译

分析:引起错误的原因很多,建议先修改之

前的错误

error C2001: newline in constant

中文对照:(编译错误)常量中创建新行

分析:字符串常量多行书写

error C2006: #include expected a filename,

found 'identifier'

中文对照:(编译错误)#include命令中需要

文件名

分析:一般是头文件未用一对双引号或尖括

号括起来,例如“#include stdio.h”

error C2007: #define syntax

中文对照:(编译错误)#define语法错误

分析:例如“#define”后缺少宏名,例如

“#define”

error C2008: 'xxx' : unexpected in macro

definition

中文对照:(编译错误)宏定义时出现了意

外的xxx

分析:宏定义时宏名与替换串之间应有空

格,例如“#define TRUE"1"”

error C2009: reuse of macro formal 'identifier'

中文对照:(编译错误)带参宏的形式参数