
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? Thanks in advance, MP

On Wed, 2 Feb 2005 17:57:32 +0000, Michael Pye
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' -- Friendly, Lemmih

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
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'
participants (3)
-
Lemmih
-
Michael Pye
-
Patrick Scheibe