Hi after getting all dependecies, I am getting this error when running the make file:
-L/usr/lib/i386-linux-gnu -lSDL
/usr/bin/ld: client/maim-sdl.o: undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/i386-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/i386-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [mangclient] Error 1
Thanks.
Blaze
Compiling error on Ubuntu 13.04
-
- Pitiful-Looking Beggar
- Posts: 2
- Joined: Sat 06.07.2013, 02:00
-
- Pitiful-Looking Beggar
- Posts: 2
- Joined: Sat 06.07.2013, 02:00
Re: Compiling error on Ubuntu 13.04
I was able to compile by doing exactly what it said, add the /lib/i386-linux-gnu/libm.so.6 to the linker command line in the Makefile...
became:
Thanks
Code: Select all
# AutoTools
CC = gcc
CFLAGS = $(SVNREV) -Wall -g -pipe -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTR$
LIBS = -L/usr/lib/i386-linux-gnu -lSDL
Code: Select all
# AutoTools
CC = gcc
CFLAGS = $(SVNREV) -Wall -g -pipe -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTR$
LIBS = -L/usr/lib/i386-linux-gnu /lib/i386-linux-gnu/libm.so.6 -lSDL
Re: Compiling error on Ubuntu 13.04
Sorry about that! The floor() functions would be removed from the next version, making the libm dependency non-existent.