PDA

View Full Version : Error of "GL_HISTOGRAM was not declared"



JCheng
05-03-2010, 03:22 AM
My program came with error of "GL_HISTOGRAM was not declared", but I did include <gl.h> at its header. Is it correct? Tks.

Stephen A
05-03-2010, 04:20 AM
You need to include <glext.h>, too. The latest version is always available here: http://www.opengl.org/registry/api/glext.h

JCheng
05-03-2010, 08:49 AM
Hi, Stephen A,

Thanks. But, after I added, the same error still existed. Any other recommended? Tks.

For your reference, below is the headers that I used:
================================================== =============
#include "gl/math3d.cpp"
#include "gl/glut.h"
#include "gl/torus.c"
#include "gl/vectormath.c"
#include "gl/glext.h"
#include "gl/gltools.cpp"
#include <stdio.h>
#include <stdlib.
================================================== =============