I have the following line in my code:


, but GL_SINGLE_COLOR is an undeclared identifier. I am pretty sure I included all includes. They are:

#include <cmath>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>

What could be a solution to this problem?

Thank you,

What compiler are you using?

If it’s a GCC compiler, are you sure you’re linking the libraries in?

Make sure you have headers for OpenGL 1.2 or later. Or get a copy of glext.h.

I’m using Visual C++ 6.0 …
It works for GCC compiling, but not for VSC++ 6.0 :\ I have rare opportunities to access a GCC compiler since I’m mostly at home and unable to reach the office computers. Hence I must use a Windows O/S.

GL_SINGLE_COLOR is defined in glext.h