Porting an existing SDL project to MacOS X

Although for some platforms (like UNIX) overriding SDLmain can be harmless (or even usefull) it is vital to use SDLmain on MacOS because it initializes the "Foundation" and "AppKit" frameworks. Also the "-ffunction-sections" compiler flag should not be used on MacOs X (v10.3 panther) because it triggers a bug (or maybe an unsupported feature) of darwin's gcc 3.3. Finally "-lobjc -framework Foundation -framework AppKit" should be added to your linker options to satisfy the linker.

FAQ_MacOS_X_Porting (last edited 2008-04-17 08:18:20 by localhost)