a.s:3: Error: undefined symbol `HHH' in operation
有一个很怪癖的问题:
a.h内容如下
#define HHH 0x01
#define BBB 0x02
a.s内容如下
#include “a.h”
H:
orr r1,r0,#HHH|BBB
这样编译
arm-linux-gcc a.s -o a.o
如果没有用|,即去掉|BBB 则不会出错。。编译出来的HHH是未定义符号U
但是加了|BBB 却说HHH 和BBB 未定义。。。。
请问怎么解决?