用arm-linux-gcc编译蓝牙程序时出现了如下错误,已经将libbluetooth这个库放到/usr/local/arm/3.4.1/arm-linux/lib中,
In file included from /usr/include/sys/socket.h:36,
from /usr/include/bluetooth/rfcomm.h:32,
from obex.c:6:
/usr/include/bits/socket.h:92:1: warning: "PF_BLUETOOTH" redefined
In file included from obex.c:5:
/usr/include/bluetooth/bluetooth.h:41:1: warning: this is the location of the previous definition
In file included from /usr/include/sys/socket.h:36,
from /usr/include/bluetooth/rfcomm.h:32,
from obex.c:6:
/usr/include/bits/socket.h:126:1: warning: "AF_BLUETOOTH" redefined
In file included from obex.c:5:
/usr/include/bluetooth/bluetooth.h:40:1: warning: this is the location of the previous definition
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libbluetooth.so: undefined reference to `__mem