
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-2.1.1.2\ghc-6.11.20081202/libHSGLUT-2.1.1.2.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"
Yes:
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?-)
Good idea. Duncan