gpt4 book ai didi

linux - 对符号 'socket@@GLIBC_2.4' 的 undefined reference

转载 作者:太空狗 更新时间:2023-10-29 11:17:26 24 4
gpt4 key购买 nike

我是 Linux 和交叉编译的新手。我在交叉编译我的项目时遇到问题。

arm-linux-gnueabihf-ld: build/backchannel-support.o: undefined reference to symbol 'socket@@GLIBC_2.4'
/usr/arm-linux-gnueabihf/lib/libc.so.6: error adding symbols: DSO missing from command line

有人可以帮我吗

谢谢-

最佳答案

我希望您正在使用 makefile 交叉编译它:请检查像 CC LD 这样的宏,确保在单独定义时是小的 cc 和 ld 见下文

COMPILER ?= ${CC}
LINKER ?= ${CC}

cc = $(COMPILER) # if you keep CC here the make file will confuse
ld = $(LINKER)

关于linux - 对符号 'socket@@GLIBC_2.4' 的 undefined reference ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44714291/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com