errors compiling simple example using OpenGL and QT

Hi there,

I am a C++ programmer for several years, but I am new to OpenGL and graphics in general. Anyway, I read a lot of information on the web, found an example (Part 2 – Modern OpenGL Using Qt 5.5 Tutorial – Creating For The Kingdom), but when compiling, I retrieve several errors listed below.

I am working with Visual Studio 2015 currently on Windows 10, QT Version is 5.5.1 openSource, intel graphics card supporting OpenGL up to Version 4.4.

The errors:


1>c:\users\wambach\desktop\oglex\openglwindow.h(73): error C2504: 'QOpenGLFunctions_3_1': base class undefined
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(706): error C2059: syntax error: '__cdecl'
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(707): error C2065: 'GLsync': undeclared identifier
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(707): error C2146: syntax error: missing ')' before identifier 'sync'
[... same for lines 708 .. up to 712:]
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(712): error C2065: 'GLsync': undeclared identifier
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(712): error C2146: syntax error: missing ')' before identifier 'sync'
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(846): error C2061: syntax error: identifier 'GLint64'
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(847): error C2061: syntax error: identifier 'GLuint64'
1>c:\qt-x64\qt-everywhere-opensource-src-5.5.1\qtbase\include\qtgui\../../src/gui/opengl/qopengles2ext.h(1542): error C2061: syntax error: identifier 'GLuint64'

There are some more, but I assume they might disappear when first ones got fixed.

Does anyone has some suggestions?

Kind regards,

F. Wambach