C++ 对“atexit-bluez编译”的未定义引用
当我试图交叉编译bluez-4.101到mipsellinux目标时,我遇到了这个问题C++ 对“atexit-bluez编译”的未定义引用,c++,bluez,atexit,C++,Bluez,Atexit,当我试图交叉编译bluez-4.101到mipsellinux目标时,我遇到了这个问题 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具有libs
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所在的路径
-未指定nostlib 期待您的帮助。添加
#include <stdlib.h>
#包括
对于C++,你应该使用<代码> CSTDLIB < /Cult>标头。文件HCIOPS.C是C文件,并且已经包含了STDLI.H。