Microsoft Compiler does not recognize #warning (specifically in qglfunctions.h)
I'm hoping that an existing Qt developer will be willing to submit the following patch so that a warning can be issued by any Microsoft C++ compiler, instead of an error about an unrecognized preprocessor command. This is regarding 4.8, but may also apply to 5.x.
@diff --git a/src/opengl/qglfunctions.h b/src/opengl/qglfunctions.h
index e142b1e..fce919e 100644
@@ -43,9 +43,14 @@
+#pragma message (FILE ": qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined")
+#pragma message (FILE ": To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h")
#warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
#warning To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h
Hi and welcome to devnet,
There's already bug "here":https://bugreports.qt-project.org/browse/QTBUG-26326 concerning that problem.
If you want, you can submit your patch through gerrit