[SDL] problems compiling with mac OS X

Rasmus Toftdahl Olesen halfdan at halfdan.dyndns.org
Tue Aug 28 17:45:01 PDT 2001


Jayson S Baird <jsb8545 at cis.ksu.edu> writes:
> when trying to build and link a program using sdl, I get the following
> linker error:
> 	/usr/bin/ld: Undefined symbols:
> 	_SDL_main
> sdl-config --cflags and --libs returns:
> 	-I/usr/local/include -I/usr/local/include/SDL -D_THREAD_SAFE
> -F/System/Library/
> Frameworks/Carbon.framework
> 	-L/usr/local/lib -lSDLmain -lSDL -framework OpenGL -framework AGL
> -framework 	Carbon
> is something needed missing or out of order?
You probaply need a properly formatted main function:
int main ( int argc, char *argv[] )

-- 
Best Regards / Venlig Hilsen
	Rasmus Toftdahl Olesen
	 halfdan at halfdan.dyndns.org
	 http://halfdan.dyndns.org




More information about the SDL mailing list