<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm on Snow Leopard, so I've read numerous posts on the subject of GHC and it's Snow Leopard (non-)compatibility. I've got most things working - I can do a 'cabal update' - something that gave errors before. GHC itself seems to be working fine. <br><p>I want to install the SDL package from Hackage, which I first tried doing like this: <br> 'cabal install sdl' <br> which gives a bunch of warnings, all looking like this <br> 'ld: warning: in /opt/local/lib/libSDL.dylib, file is not of required <br> architecture' <br> with 'libSDL.dylib' replaced with various *.a and *.dylib files <br> </p><p>I then found this in a Usenet post about Snow Leopard breaking GHC: <br> -- Once cabal works, options --ld-option=-m32 (and also --gcc-option=- m32)&nbsp;may be used. These options may also be passed to "./Setup configure" <br> </p><p>And tried this: (I think maybe my problem is that I'm not passing these flags correctly to cabal) <br> 'cabal install sdl --ld-options="-arch i386" --gcc-option=-m32 --reinstall' <br> Well I get the same errors, well warnings actually. <br> </p><p>Can I just ignore these warnings? <br> </p><p>When compiling my small sample code: <br> import Prelude <br> import Graphics.UI.SDL as SDL <br> </p><p>main = do <br> &nbsp; SDL.init [InitEverything] <br> &nbsp; setVideoMode 640 480 32 [] <br> </p><p>I again get the warnings: <br> ld: warning: in /opt/local/lib/libSDL.dylib, file is not of required <br> architecture <br> ld: warning: in /opt/local/lib/libSDLmain.a, file is not of required <br> architecture <br> </p><p>and then a bunch of undefined symbols such as: <br> _SDL_Init <br> _SDL_SetClipRect <br> </p><p>Well this post basically based on the assumption that the warnings are breaking the SDL library and thereby keeping my code from compiling - so how do I fix those warnings? <br> </p><p>- Sorry for the long mail<br> Malthe&nbsp;</p></body></html>