I work under the big QT project like OpenGL developer, so, i'm not clearly understand the problems, just trying to investigate them. When project was worked under QT 4.8.7 version their legacy OpenGL code was compiled and worked correctly(We use GLEW to initialize OpenGL functions and have our own opengl wrapper classes, like framebuffers and OpenGL context). After migration to QT 5.15.2 we got this error:
/*
from File1.h
from File2.h
from File3.h
from qt_generated/File4.cpp:10:
*/
error: #error gl.h included before glew.h
#error gl.h included before glew.h
I understand that without code nobody can helps me, so, I just want to know the approaches to resolving such type of problems, what should I pay attention to first? I tried to play with order of including files.