
Anyone else here using the SDL binding on their Macs? (If memory serves me, at one point, I had gotten libSDL to work with 6.2.2). Now using GHC 6.4.1, while SDLstable-0.2.0 built without any problem for me on Linux, hsc2hs fails on the Mac: % runhaskell Setup.lhs build --verbose Reading parameters from /SDLstable/src/Core/SDL.buildinfo Preprocessing library SDL-0.2.0... /usr/local/bin/hsc2hs -I/fp/include/SDL -D_THREAD_SAFE -oGraphics/UI/SDL/General.hs Graphics/UI/SDL/General.hsc ld: Undefined symbols: _ZCMain_main_closure ___stginit_ZCMain % cat config.mk SDL_CFLAGS=-I/fp/include/SDL -D_THREAD_SAFE SDL_LIBS=-L/fp/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL PACKAGE=SDL VERSION=0.1.0 MAINTAINER=lemmih@gmail.com % cat SDL.buildinfo cc-options: -I/fp/include/SDL -D_THREAD_SAFE ld-options: -L/fp/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL I am using the Mac OS X binary ghc 6.4.1 from the GHC download page on 10.4.3, linking to the latest libSDL 1.2.9 handbuilt with gcc 3.3. jake