[Solved] Qt5 compilation errors with qopengles2ext.h
-
I'm porting a project to Qt5. I changed my header includes for the new structure, got rid of a few minor bugs (QPlastiqueStyle no longer exists?), and am left with a few compile errors all related to qopengles2ext.h:
C2143: syntax error : missing ')' before 'constant'
C2059: syntax error : ')'The first one shows up four times, and the second shows up twice. The offending code looks like this:
typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);I have no idea what this is, and I don't use OpenGL in my project, so I'm quite confused what the problem is. I would greatly appreciate some advice. I'm using Windows 7 and Qt5 beta 2. Thanks!
-
I solved this problem by including Qt Widgets headers individually rather than simply #include <QtWidgets>.