簡體   English   中英

未定義對`atexit的引用-bluez編譯

[英]undefined reference to `atexit - bluez compilation

當我嘗試交叉編譯bluez-4.101到mipsel-linux目標時,我遇到了這個問題。

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未指定

期待您的幫助。

 #include <stdlib.h>

到文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM