undefined reference to symbol 'clock_gettime@@GLIBC_2.4'
Closed this issue · 1 comments
jrcichra commented
Compiling this for a Raspberry Pi Model B. Received this error:
/usr/bin/ld: src/megaposix.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:40: recipe for target 'MegaFuse' failed
make: *** [MegaFuse] Error 1
Might be a Raspberry Pi thing.
jrcichra commented
Fixed: Modified the Makefile
CCFLAGS = -O0 -g -fstack-protector-all -Wall #-non-call-exceptions
to
CCFLAGS = -O0 -g -fstack-protector-all -Wall -lrt #-non-call-exceptions