Strange error

er at klaptop:~/blahsdl$ make
gcc -o sdlblah src/common.c sdl-config --cflags -g -O2 -Wall sdl-config --libs
/usr/lib/gcc/i486-linux-gnu/4.3.3/…/…/…/…/lib/crt1.o: In function
_start': /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference tomain’
collect2: ld returned 1 exit
status
make: *** [sdlblah] Error
1

probably me but after this it makes fine … what is happening?

It sounds like you need #include “SDL.h” in src/common.cOn Sun, Nov 15, 2009 at 3:46 PM, Neil White wrote:

er at klaptop:~/blahsdl$ make
gcc -o sdlblah src/common.c sdl-config --cflags -g -O2 -Wall sdl-config --libs
/usr/lib/gcc/i486-linux-gnu/4.3.3/…/…/…/…/lib/crt1.o: In function
_start': /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined reference tomain’
collect2: ld returned 1 exit
status
make: *** [sdlblah] Error
1

probably me but after this it makes fine? … what is happening?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC