SDL
Haskell-SDL with Mac OS X
There are some issues with the Haskell SDL bindings and Mac OS X, notably linking problems that result in an error such as:
Linking test ...
Undefined symbols:
"_SDL_main", referenced from:
-[SDLMain applicationDidFinishLaunching:] in libSDLmain.a(SDLMain.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
<[/code>
In the SDL bindings' MACOSX file there is some mention of a code example that shows how to solve this. Unfortunately, the darcs repository where this code resides is down. After asking Nick Alexander, who was mentioned in the MACOSX file, he referred to the following work by Audrey Tang, where the Main-file trick for making this compile can still be found: [1]