I have a mac and I am trying to compile my projects. The standard on the wiki: g++ sdl.cpp -lSDLmain -lSDL -framework Cocoa does not seem to be working it returns that it cannot find -lSDL and -lSDLmain. Any help would be greatly appreciated.
A:
Do you understand the meaning of the flags? The linker is looking for the libraries SDL and SDLmain, are they setup on your machine?
me_here
2009-12-22 15:37:49
They were and it was very different to what I was expecting, the solution is: gcc -I/Library/Frameworks/SDL.framework/Headers -I/System/Library/Frameworks/OpenGL.framework/Headers MyProgram.c SDLmain.m -framework SDL -framework Cocoa -framework OpenGL
dejai
2009-12-23 03:16:01