一个奇葩的编译错误和解决方案------error: expected identifier before numeric constant
2017-07-07 22:16
621 查看
晚上写代码, 写着写着, 我擦, 突然出现一个编译错误: error: expected identifier before numeric constant, 搞得我莫名其妙。 最后, 通过“最小化”程序法, 锁定在一个include处: 加上这样就有问题, 去掉这样就没有问题。
是在找不到设么原因, 去网上查了一下, 原来是枚举冲突了。 也就是两个第三方库的枚举冲突了! 我勒个区, 名空间呢?
秉承对修改封闭, 对扩展开放的原则, 我增加了xxx_ex.h文件, 问题解决。
先说到这里。
是在找不到设么原因, 去网上查了一下, 原来是枚举冲突了。 也就是两个第三方库的枚举冲突了! 我勒个区, 名空间呢?
秉承对修改封闭, 对扩展开放的原则, 我增加了xxx_ex.h文件, 问题解决。
先说到这里。
相关文章推荐
- Linux系统下c语言编译错误:Error:expected identifier before numeric constant
- error: expected '}' before numeric constant 编译错误解决方案
- expected identifier before numeric constant错误
- error: expected identifier before numeric constant的处理
- error: expected identifier before numeric constant
- error: expected identifier before numeric constant
- Qt报错:myudp.h:4: error: expected identifier or '(' before string constant
- 编译错误:error: expected '=', ',', ';', 'asm' or '__attribute__' before...
- 【错误】error: expected declaration specifiers or ‘...’ before string constant
- expected identifier before numeric constant 解决
- gcc 编译错误 error:expected class-name before ';' token
- c++ 报错 error: expected unqualified-id before numeric constant
- 宏定义错误:error: expected ‘;’ before ‘if’的解决方案
- error: expected ‘)’ before numeric constant
- 关于【error: expected identifier before ‘,’ token】错误的检查
- 在Ubuntu gcc下编译c程序,错误如下: test.c:3: error: expected ';', ',' or ')' before '&' token
- CCS3.3中编译出现错误 line 18: error: expected an identifier
- 一个令人傻眼的错误(error: expected initializer before )
- expected identifier before numeric constant
- bullet, iOS真机编译错误error: identifier or immediate expression expected解决方法