HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Request an account if you don't have one.

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]

Retrieved from "http://www.haskell.org/haskellwiki/SDL"

This page has been accessed 31 times. This page was last modified 22:46, 8 February 2010. Recent content is available under a simple permissive license.