[Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL
duncan.coutts at worc.ox.ac.uk
Tue Dec 2 18:24:06 EST 2008
On Tue, 2008-12-02 at 18:04 +0000, Claus Reinke wrote:
> >> ghc --make -package OpenGL -package GLUT something.hs
> >> I get nothing but undefined references in the linking phase.
> >> C:\Program Files\Haskell\GLUT-220.127.116.11\ghc-6.11.20081202/libHSGLUT-18.104.22.168.a(Window.o):fake:
> >> (.text+0x15): undefined reference to `glutWarpPointer'
> > Does ghc-pkg describe OpenGL tell you that the package needs some gl C
> > lib? Eg "ld-options: -lGLU -lGL -lm"
Then I've no idea. Is it missing all symbols or is it just a few? Does
your GL dll actually contain those symbols.
This doesn't immediately appear to me to be a Cabal/cabal-install
problem. Perhaps we can ask for some wider help with this one.
> >> Btw, is the format for the cabal config file documented somewhere?
> >> I though I had set documentation to True.
> > At the moment only in the config file itself. It lists all the fields
> > (commented out) and where there are default values it lists those too.
> ah, I wasn't sure whether those '--' were meant to indicate options or
> commenting (a comment in the first line might make usage unambiguous?-)
More information about the Haskell-Cafe