Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.0
-
None
-
windows 7 x64
MSVC 2010
glew 1.6.0
Description
I got Qt-4.8 source code from git, it seems that using glew.h with Qt-4.8 in MSVC has broken.
If I include glew.h before <QtOpenGL>, there will be compiling errors, this is due to the following line in qglfunctions.h
#ifdef _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
#endif
MSVC doesn't recognize preprocessor directive #warning
If I include glew.h after <QtOpenGL>, then glew.h will complain "fatal error C1189: #error : gl.h included before glew.h"
For now, I can't find a way to use glew.h with Qt