<div dir="ltr"><div dir="ltr">Hello!<div><div>I hope you can help me. I'm trying to use SDL-gfx but it seems it isn't linking it correctly. When I try to run this simple file with runhaskell:</div>import Graphics.UI.SDL.Primitives<br><div>main = putStrLn "Hello"</div><div><br></div><div>It gives:</div><div>sdl.test.hs: <command line>: can't load .so/.DLL for: /home/username/.cabal/lib/i386-linux-ghc-7.10.2/SDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF/<a href="http://libHSSDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF-ghc7.10.2.so">libHSSDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF-ghc7.10.2.so</a> (/home/username/.cabal/lib/i386-linux-ghc-7.10.2/SDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF/<a href="http://libHSSDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF-ghc7.10.2.so">libHSSDL-gfx-0.6.0.1-6rhSP5mw8M00K9S8yASTVF-ghc7.10.2.so</a>: undefined symbol: SDL_initFramerate)</div><div><br></div><div>Notes:<br>* SDL works fine in all cases.<br></div><div>* My system is i386, using Arch Linux. I tried with another computer with x86_64 with Arch Linux and it worked.</div><div>* It works if I compile it with ghc and run the executable.</div><div>* I installed the package using cabal install SDL-gfx with no errors.</div><div>* I installed the library in the OS just in case, and double checked that it exist in /usr/lib/libSDL_gfx.so and that it contains the symbol SDL_initFramerate.</div><div>* The long *.so library reported by runhaskell also constains SDL_initFramerate.</div><div>* GHCi gives the same error (when executing main).</div><div>* I'm trying to make a cabal package that uses this library, and cabal gave the same error within the sandbox.</div></div><div><br></div></div></div>