Undefined symbol reference 'socket @@ GLIBC_2.4'

I am new to Linux and cross compilation. I am facing problems cross-compiling my project.

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

      

Can someone please help me here.

thank -

+3


source to share


1 answer


I hope you cross this with maikefiles: check macros like CC LD make sure they are small cc and ld when they define separately below.



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

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

      

0


source







All Articles