I am trying to build an SDL2 app using static libraries on 64 bit Linux,
but when linking I get the error:
libSDL2.a(SDL_render.c.o):
undefined reference to symbol ‘floor@@GLIBC_2.2.5’
/usr/bin/ld: note: ‘floor@@GLIBC_2.2.5’ is defined in DSO
/lib/x86_64-linux-gnu/libm.so.6 so try adding it to the linker command line
I added m to the linker and still get the error.
Searching all shared object files for floor@@GLIBC_2.2.5 I get nothing:
find /usr -name *.so -exec nm -D 2> /dev/null {} dev/null ; | grep floor@
@GLIBC_2.2.5
Searching all static libraries files for floor@@GLIBC_2.2.5 I get nothing:
find /usr -name *.a -exec nm 2> /dev/null {} dev/null ; | grep floor@
@GLIBC_2.2.5
So my question is, where is floor@@GLIBC_2.2.5 and what do I need to
install to get it?