当我试图交叉编译bluez-4.101到mipsel-linux target时,我遇到了这个问题。
plugins/bluetoothd-hciops.o: In function `init_device':
hciops.c:(.text+0xadc0): undefined reference to `atexit'
hciops.c:(.text+0xadc8): undefined reference to `atexit'以下是指定的编译器选项和链接器选项
-lstdc++
-L包含libstdc++.so所在的路径
未指定-nostdlib
期待您的帮助。
发布于 2013-11-08 18:50:18
添加
#include <stdlib.h>添加到文件中。
https://stackoverflow.com/questions/19857114
复制相似问题