lemming: > > On Tue, 24 Jun 2008, Norbert Wojtowicz wrote: > > >Hello, > > > >I am trying to use the SDL-mixer bindings to play wav files. I've hit > >a wierd error and I can't figure out how to solve it: > > > >Prelude> import Graphics.UI.SDL.Mixer.Music > >Prelude Graphics.UI.SDL.Mixer.Music> loadMUS "test.wav" > > Is the package installed? Otherwise you may have to give an -lSDL_mixer > option when starting ghci.
That's not enough, for some reason: $ ghci -lSDL_mixer Prelude> import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music> loadMUS "test.wav" <interactive>: /home/dons/.cabal/lib/SDL-mixer-0.5.2/ghc-6.8.2/HSSDL-mixer-0.5.2.o: unknown symbol `Mix_LoadWAV' ghc-6.8.2: unable to load package `SDL-mixer-0.5.2' Despite it being defined in $ grep Mix_LoadWAV /usr/lib/* Binary file /usr/lib/libSDL_mixer-1.2.so.0 matches Binary file /usr/lib/libSDL_mixer-1.2.so.0.2.6 matches Binary file /usr/lib/libSDL_mixer.a matches Binary file /usr/lib/libSDL_mixer.so matches Hmm. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe