Hello Clifford,

Thank you for the quick reply.
I was able to get a test C program that draws a triangle with GLUT to work:
gcc -lglut triangle.o -o triangle.exe

However, when building the Haskell GLUT 'Hello World' it uses, -lGLU to link GLUT, but that does not work; however, from the config.log output configure seems to think that -lGL should work.  Is there a way I can change the build to use -lglut?  Maybe with configure I can specify that -lglut is the correct way to link the GLUT libraries?

Thank you!
__
Donnie



On Sat, Sep 20, 2008 at 3:42 PM, Clifford Beshers <clifford.beshers@gmail.com> wrote:
It works for me.  I'm running Ubuntu Hardy with some packages built by us at SeeReason (see debs.seereason.com).

It looks like ghc can't find your glut libraries (not the Haskell wrappers, but the real GLUT libs). Try 'ghc -v --make ' and look at the linking lines and see what GHC is specifying (mine shows a -lglut).  Try compiling an example C program against GLUT and see if that works.

My package list looks like this:
beshers@blue:~/haskell$ dpkg -l \*glut\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  freeglut-dev   <none>         (no description available)
ii  freeglut3      2.4.0-6        OpenGL Utility Toolkit
ii  freeglut3-dev  2.4.0-6        OpenGL Utility Toolkit development files
un  glut-doc       <none>         (no description available)
un  glutg3         <none>         (no description available)
un  glutg3-dev     <none>         (no description available)
ii  libghc6-glut-d 2.1.1.1-2+3see Haskell GLUT binding for GHC
un  libghc6-glut-d <none>         (no description available)
un  libghc6-glut-p <none>         (no description available)
un  libglut        <none>         (no description available)
un  libglut-dev    <none>         (no description available)
pn  libglut3       <none>         (no description available)
un  libglut3-dev   <none>         (no description available)



On Sat, Sep 20, 2008 at 12:10 PM, Donnie Jones <donnie@darthik.com> wrote:
Fixed link.
__
Donnie


On Sat, Sep 20, 2008 at 3:08 PM, Donnie Jones <donnie@darthik.com> wrote:
Hello,

I am having linker errors when trying the Haskell OpenGL / GLUT 'Hello World' program.  Please see my thread that was first posted on Haskell-cafe mailing list.

[Haskell-cafe] Linker Errors For OpenGL / GLUT 'Hello World' Program:
http://www.haskell.org/pipermail/haskell-cafe/2008-September/047357.html

Any help would be greatly appreciated.  :)
Thank you.
__
Donnie



_______________________________________________
HOpenGL mailing list
HOpenGL@haskell.org
http://www.haskell.org/mailman/listinfo/hopengl