[Haskell-cafe] GLUT (glutGet undefined reference)
Eugene Kirpichov
ekirpichov at gmail.com
Mon Jan 19 16:44:04 EST 2009
Ouch. Sorry, I misread your post: I thought you were having troubles on Windows.
2009/1/20 Eugene Kirpichov <ekirpichov at gmail.com>:
> Have you tried http://netsuperbrain.com/blog/posts/freeglut-windows-hopengl-hglut/
> ?
>
> 2009/1/20 Paul Keir <pkeir at dcs.gla.ac.uk>:
>> Hi all,
>>
>> I was hoping to introduce my old pal OpenGL
>> with my new chum, Haskell. I used cabal to
>> install GLUT on my 64-bit Ubuntu machine with
>> GHC 6.8.2 (installed via apt-get/synaptic).
>>
>> I followed the wiki OpenGLTutorial1 until:
>> ghc -package GLUT HelloWorld.hs -o HelloWorld
>> at which point my screen is filled with errors.
>> The errors begin with:
>>
>> /home/paul/.cabal/lib/GLUT-2.1.1.2/ghc-6.8.2/libHSGLUT-2.1.1.2.a(Begin.o):
>> In function `szEn_info':
>> (.text+0x26c): undefined reference to `glutGet'
>>
>> This surprised me a little because I've already
>> seen these same errors recently on two separate
>> Windows boxes. Somehow I'd got the idea it was
>> (on Windows) due to installing from a binary; though
>> I guess the story is the same with apt-get. Should
>> I look for an apt-get switch to reinstall GHC from
>> source instead?
>>
>> Regards,
>> Paul
>>
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
>
>
>
> --
> Евгений Кирпичев
> Разработчик Яндекс.Маркета
>
More information about the Haskell-Cafe
mailing list