我是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)