用的IDE是VC6.0,编译报错redefinition; different storage class
源程序有这么一段
constant.h文件如下:
#ifdef __cplusplus
const int TRUE = 0
....
....
#else
#define TRUE = 0
....
....
#endif
然后我主程序
A.cpp中包含的头文件有constant.h
编译时报错:
error C2370:'TRUE' redefinition; different storage class
see declaration of 'TRUE'