Skip to content

Instantly share code, notes, and snippets.

@simonmichael
Forked from anonymous/gist:658752
Created November 1, 2010 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmichael/658811 to your computer and use it in GitHub Desktop.
Save simonmichael/658811 to your computer and use it in GitHub Desktop.
-- test for hsSDL unknown symbol issue on mac OSX leopard
--
-- with macports sdl libs and hackage SDL libs installed,
-- this script compiles and runs via ghc --make, but via
-- runhaskell gives an error like:
-- /Users/simon/.cabal/lib/SDL-0.6.2/ghc-6.12.3/HSSDL-0.6.2.o: unknown symbol `_SDL_FreeSurface'
import Graphics.UI.SDL (getTicks)
main = do
t <- getTicks
putStrLn $ show t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment