Compiling with static libraries

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?

Never mind, I got it working.

What was the issue? >:(

2013/5/27, Anthony Walter :> Never mind, I got it working.

I added a linker reference to /lib/x86_64-linux-gnu/libm.so.6 using a
different syntax.