Re: This is (still) driving me crazy
Re: This is (still) driving me crazy
- Subject: Re: This is (still) driving me crazy
- From: John Harper <email@hidden>
- Date: Thu, 20 Feb 2003 10:41:57 -0800
On Thursday, Feb 20, 2003, at 08:27 US/Pacific, Nicolas Holzschuch
wrote:
Le jeudi, 20 fiv 2003, ` 16:21 Europe/Paris, Nicolas Holzschuch a
icrit :
I tracked it to a set of lines :
gluTessCallback(tobj, (GLenum)GLU_BEGIN, (void (*)())glBegin);
gluTessCallback(tobj, (GLenum)GLU_END, (void (*)())glEnd);
gluTessCallback(tobj, (GLenum)GLU_VERTEX, (void (*)())glVertex2fv);
(the only place where the three function calls appear together)
So it is probably not an X11-related problem. I'm still unable to run
any inventor-related application, so any help is welcome.
After removing these three lines, I've had problems with other lines
that read :
colorFunc = (SoVPCacheFunc *)glIndexiv;
(and similar versions).
Basically, any line that casts an OpenGL function results in this
OpenGL function not being found at link-time.
So may be it is an X11-related problem after all.
I can't reproduce this here, try putting this in test.c:
#include <GL/gl.h>
int main (int argc, char **argv)
{
void *fun = (void *) glBegin;
printf ("glBegin is %p\n", fun);
return 0;
}
then compiling it as "gcc test.c -I/usr/X11R6/include -L/usr/X11R6/lib
-lGL". When I run the resulting a.out binary it links and runs
correctly,
John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.