Problems compiling with mac OS X

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?

Thanks in advance,

Jayson Baird
jayson.baird at ndsu.nodak.edu

Jayson S Baird 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

Max Horn is working on improving the MacOS X command line build support.
It should be in the next release.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment