[HOpenGL] Linker problem compiling HOpenGL code

Patrick Scheibe mai99dnn at studserv.uni-leipzig.de
Wed Feb 2 16:54:42 EST 2005


You should add all package stuff. It could be that -package GLUT implies the 
opengl package but savety first.
I think the real problem was that you didn't know that you have to
give the package option for the opengl package.

ghc -package OpenGL -package GLUT Planet2.hs

Cheers
Patrick


On Wednesday 02 February 2005 18:48, Lemmih wrote:
> On Wed, 2 Feb 2005 17:57:32 +0000, Michael Pye <mail at mdpye.co.uk> wrote:
> > I am trying to compile a simple example programme with ghc-6.2.2. The
> > programme compiles OK and I'm left with object code, but the linker
> > fails.
> >
> > GHC was compiled from source, and the linker works with other compilers.
> > The full output of ghc -v is attached.
> >
> > Can anyone shed any light on this problem?
>
> Try compiling with 'ghc -package GLUT Planet2.hs'



More information about the HOpenGL mailing list