giorgik
14th December 2012, 08:46
Hello to all. I have a project that uses calls to OpenGL, in particular, I'm:
static GLUtesselator *tobj = NULL;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, (GLvoid (*) ()) &glVertex3dv);
...
compiling I get this error message:
C:\Qt\progetti\AreaRobot\blockgroup.cpp:187: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
I do not know how I can correct the error, can you help me ?
static GLUtesselator *tobj = NULL;
tobj = gluNewTess();
gluTessCallback(tobj, GLU_TESS_VERTEX, (GLvoid (*) ()) &glVertex3dv);
...
compiling I get this error message:
C:\Qt\progetti\AreaRobot\blockgroup.cpp:187: error: invalid conversion from 'GLvoid (*)() {aka void (*)()}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
I do not know how I can correct the error, can you help me ?