Hello, I have a compile error, can anyone help fix this?
An example is here: https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_GLX_and_Xlib Compile error: $ gcc quad.c -o quad -lX11 -lGL -lGLU In file included from quad.c:12: /usr/include/w32api/GL/glu.h:68:78: error: expected ‘)’ before ‘*’ token 68 | void APIENTRY gluQuadricCallback(GLUquadric *qobj,GLenum which,void (CALLBACK *fn)()); | ^~ | ) /usr/include/w32api/GL/glu.h:78:78: error: expected ‘)’ before ‘*’ token 78 | void APIENTRY gluTessCallback(GLUtesselator *tess,GLenum which,void (CALLBACK *fn)()); | ^~ | ) /usr/include/w32api/GL/glu.h:94:74: error: expected ‘)’ before ‘*’ token 94 | void APIENTRY gluNurbsCallback(GLUnurbs *nobj,GLenum which,void (CALLBACK *fn)()); | ^~ | ) /usr/include/w32api/GL/glu.h:96:23: error: expected ‘)’ before ‘*’ token 96 | typedef void (CALLBACK *GLUquadricErrorProc)(GLenum); | ^~ | ) /usr/include/w32api/GL/glu.h:97:23: error: expected ‘)’ before ‘*’ token 97 | typedef void (CALLBACK *GLUtessBeginProc)(GLenum); | ^~ | ) /usr/include/w32api/GL/glu.h:98:23: error: expected ‘)’ before ‘*’ token 98 | typedef void (CALLBACK *GLUtessEdgeFlagProc) (GLboolean); | ^~ | ) /usr/include/w32api/GL/glu.h:99:23: error: expected ‘)’ before ‘*’ token 99 | typedef void (CALLBACK *GLUtessVertexProc)(void *); | ^~ | ) /usr/include/w32api/GL/glu.h:100:23: error: expected ‘)’ before ‘*’ token 100 | typedef void (CALLBACK *GLUtessEndProc)(void); | ^~ | ) /usr/include/w32api/GL/glu.h:101:23: error: expected ‘)’ before ‘*’ token 101 | typedef void (CALLBACK *GLUtessErrorProc)(GLenum); | ^~ | ) /usr/include/w32api/GL/glu.h:102:23: error: expected ‘)’ before ‘*’ token 102 | typedef void (CALLBACK *GLUtessCombineProc)(GLdouble[3],void*[4],GLfloat[4],void**); | ^~ | ) /usr/include/w32api/GL/glu.h:103:23: error: expected ‘)’ before ‘*’ token 103 | typedef void (CALLBACK *GLUtessBeginDataProc)(GLenum,void *); | ^~ | ) /usr/include/w32api/GL/glu.h:104:23: error: expected ‘)’ before ‘*’ token 104 | typedef void (CALLBACK *GLUtessEdgeFlagDataProc) (GLboolean,void *); | ^~ | ) /usr/include/w32api/GL/glu.h:105:23: error: expected ‘)’ before ‘*’ token 105 | typedef void (CALLBACK *GLUtessVertexDataProc)(void *,void *); | ^~ | ) /usr/include/w32api/GL/glu.h:106:23: error: expected ‘)’ before ‘*’ token 106 | typedef void (CALLBACK *GLUtessEndDataProc)(void *); | ^~ | ) /usr/include/w32api/GL/glu.h:107:23: error: expected ‘)’ before ‘*’ token 107 | typedef void (CALLBACK *GLUtessErrorDataProc)(GLenum,void *); | ^~ | ) /usr/include/w32api/GL/glu.h:108:23: error: expected ‘)’ before ‘*’ token 108 | typedef void (CALLBACK *GLUtessCombineDataProc)(GLdouble[3],void*[4],GLfloat[4],void**,void*); | ^~ | ) /usr/include/w32api/GL/glu.h:109:23: error: expected ‘)’ before ‘*’ token 109 | typedef void (CALLBACK *GLUnurbsErrorProc)(GLenum); | ^~ | ) Thank you in advance for your help. Best regards - Rafał -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple