[Haskell-cafe] OpenGL Linking Issue

Mark Spezzano mark.spezzano at chariot.net.au
Wed Mar 18 02:38:44 EDT 2009


Hi,

 

I hope I’m posting to the right forum. 

 

I’ve got OpenGL up and running on my Windows Vista machine (finally!) and it
runs perfectly well under Eclipse, bringing up a window with a rendered
image as expected.

 

The only issue starts when I try to compile the program without Eclipse
(using GHC rather than GHCi like Eclipse does).

 

I type:

 

C:\Users\Mark\workspace2\OpenGLPractice\src>ghc --make Test1.hs

 

And get the following output

 

Linking Test1.exe ...

C:\Program
Files\Haskell\GLUT-2.1.1.2\ghc-6.10.1/libHSGLUT-2.1.1.2.a(Extensions.

o):fake:(.text+0xcc): undefined reference to `glutGetProcAddress at 4'

collect2: ld returned 1 exit status

 

What’s happening here? Obviously it’s a linking issue, but I was wondering
whether I need to include some library or file or option to ghc so that it
links correctly.

 

Cheers,

 

Mark Spezzano

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.557 / Virus Database: 270.11.18/2008 - Release Date: 17/03/2009
4:25 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090318/e835d357/attachment.htm


More information about the Haskell-Cafe mailing list