GHCi+Cairo, Windows

Alexey Shumitsky alexey.shumitsky at
Tue Feb 1 16:47:22 CET 2011


I have problem with ghci+cairo on windows. When I try to load, for
example like this "ghci -package cairo" it fails with the following

Loading package random- ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package syb- ... linking ... done.
Loading package base- ... linking ... done.
Loading package mtl- ... linking ... done.
: C:\Users\alexeys\AppData\Roaming\cabal\cairo-0.12.0\ghc-6.12.3\HScairo-0.12.0.o:
unknown symbol `_cairo_surface_destroy'
Loading package cairo-0.12.0 ... linking ... : unable to load package

Even simplest programs don't work in interactive mode, like for
example 'Text.hs' that comes with cairo package. However compiled with
'ghc --make' everything works as expected, so its not a "missing dll"
problem - everything is in place.

I used 'filemon' on "ghci" and in the log I can see that
'libcairo-2.dll' was found and loaded successfully  (and this library
has '_cairo_surface_destroy' symbol defined). So I don't understand -
what more does it want and what can be done to combat it?

More information about the Glasgow-haskell-users mailing list