enum ProxyType { OTHERALL_TASK = 0, SPEECH_TASK = 3 };
|
以前上面的代码编译是没问题的,更新代码后,错误提示: BrType.hpp:632: 错误:expected identifier before numeric constant BrType.hpp:632: 错误:expected `}' before numeric constant BrType.hpp:632: 错误:expected unqualified-id before numeric constant BrType.hpp:633: 错误:expected declaration before ‘}’ token 问题出在:
SPEECH_TASK,在另外一个头文件里也有宏定义!而这个文件include了那个头文件,
SPEECH_TASK被替换为相应的常数,所以出了以上的错误提示。
找了两个小时,主要是很难想到是别的文件#define 引起的冲突!
From : http://blogold.chinaunix.net/u3/93789/showart_2442896.html
|