程序中出现unexpected end of file in macro expansion
2013-07-06 10:02
387 查看
这是在宏扩展的文件意外结束的意思,说的是你用宏时没有收尾:
例如 #define max(a,b) a>b?a:b
假如你用宏的时候你缺了右括号
如 max(3,5; 编译器就会报这种错,
当然这种很容易判断出,但是当宏比较复杂就要小心了,
估计很难找到哦,所以用复杂宏的时候千万要记住要收尾
例如 #define max(a,b) a>b?a:b
假如你用宏的时候你缺了右括号
如 max(3,5; 编译器就会报这种错,
当然这种很容易判断出,但是当宏比较复杂就要小心了,
估计很难找到哦,所以用复杂宏的时候千万要记住要收尾
相关文章推荐
- VC错误:编译程序中出现“fatal error C1010: unexpected end of file”
- VC错误:编译程序中出现“fatal error C1010: unexpected end of file”
- 编译程序中出现“fatal error C1010: unexpected end of file”
- php出现如下错误: Parse error: syntax error, unexpected end of file in
- 编译程序中出现“fatal error C1010: unexpected end of file”
- 编译程序中出现“fatal error C1010: unexpected end of file”
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- 关于IAR EWARM出现Unexpected end of file encountered错误的一种情况
- Parse error: syntax error, unexpected end of file in *.php on line * 解决方法
- 在编译VC++6.0是,出现fatal error C1010: unexpected end of file while looking for precompiled header directi
- 出现此问题的解决方法: unexpected end of file while looking for precompiled header directive
- unexpected end of file in HotNewspro\includes\directory.php on line 22
- VS2008中 .h头文件出现“fatal error RC1004: unexpected end of file found”问题
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题
- 添加Basic excel后出现Error 2 error C1010: unexpected end of file while looking for precompiled
- 使用VC6.0编译C++代码的时候报错:fatal error C1071: unexpected end of file found in comment(Mark ZZ)
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题?
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- shell中出现syntax error: unexpected end of file
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive ta