Jump to content
  • Advertisement
Sign in to follow this  
jcheng3305

OpenGL Error of "GL_HISTOGRAM was not declared?

This topic is 3001 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My OpenGL program at Windows platform does include <gl.h> and <glext.h>, but it comes with an error of "GL_HISTOGRAM was not declared"? Is is correct? Or some other headers should include to avoid this issue? Tks.

Share this post


Link to post
Share on other sites
Advertisement
Thanks. I included as below :
==========================================================
#define GLUT_DISABLE_ATEXIT_HACK

#include "glew/glew.h"

//#include "gl/gltools.h"
#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.h>
=========================================================
The error was changed to "undefined reference to '_imp___glewHistogram'. Any suggestion to fix it? Tks.

Share this post


Link to post
Share on other sites
Thanks. I included as below :
==========================================================
#define GLUT_DISABLE_ATEXIT_HACK

#include "glew/glew.h"

//#include "gl/gltools.h"
#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.h>
=========================================================
The error was changed to "undefined reference to '_imp___glewHistogram'. Any suggestion to fix it? Tks.

Share this post


Link to post
Share on other sites
Sounds like a linker issue. I suggest that you link with the dynamic librray glew32.lib instead of the static library glew32s.lib

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!