[HOpenGL] ghc-6.2/opengl
mai99dnn at studserv.uni-leipzig.de
mai99dnn at studserv.uni-leipzig.de
Tue Jan 20 19:47:40 EST 2004
Hi there...
The following problem was posted to the haskell-users list:
We can not build a opengl application with hopengl.
We get this error message:
Linking ...
Undefined first referenced
symbol in file
glXGetProcAddressARB
/usr/local/share/ghc/lib/ghc-6.2/libHSOpenGL_cbits.a(HsOpenGL.o)
glXGetProcAddressARB is a function that returns just a pointer to another
function. It is used to find out what special gl features your graphiccard
or mesa provides.
If there isn't that feature you want, this function returns a NULL
pointer. I hope I'm right so far.
Our system is a "SunOS 5.8 Generic_108528-27 sun4u sparc
SUNW,Ultra-60". I looked around, but I was unable to find any libglX,
where this function normally appears.
One way to make this all running is to write a
foo-bar-glXGetProcAddressARB function that returns everytime the
NULL-pointer.
But how can I compile this together with the haskell source? Or must I
build a *.so library? Or is there a much much easier way to solve this?
Cheers
Patrick
--------------------------------
RockMe
http://www.yoursort.de
Anikas Pharmaziestudium-Seite
http://www.pharmazie.net.ms
More information about the HOpenGL
mailing list