Re: Linker problem compiling HOpenGL code

Patrick Scheibe <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
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 <[email protected]> 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'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.