Problems compiling openGL

Hi

I get this errors I think I missed including something or maybe included things in the wrong order.

#define GLH_EXT_SINGLE_FILE

#include <glh/glh_obs.h>
#include <glh/glh_glut.h>
#include <glh/glh_glut_text.h>
#include <windows.h>

using namespace glh;

\glh\glh_genext.h(57) : error C2146: syntax error : missing ‘;’ before identifier ‘glBlendColor’
\glh\glh_genext.h(57) : error C2501: ‘PFNGLBLENDCOLORPROC’ : missing storage-class or type specifiers
\glh\glh_genext.h(57) : fatal error C1004: unexpected end of file found

Hope for a swift and good answere

Many thanx

Lee Sandberg

Are you trying to compile the GLUT library?
Aways include the name and version of the compiler that you are using, also the OS and version.

Would maybe easier to download a pre-compile glut library for your compiler.

Originally posted by Lee Sandberg:
[b]Hi

I get this errors I think I missed including something or maybe included things in the wrong order.

#define GLH_EXT_SINGLE_FILE

#include <glh/glh_obs.h>
#include <glh/glh_glut.h>
#include <glh/glh_glut_text.h>
#include <windows.h>

using namespace glh;

\glh\glh_genext.h(57) : error C2146: syntax error : missing ‘;’ before identifier ‘glBlendColor’
\glh\glh_genext.h(57) : error C2501: ‘PFNGLBLENDCOLORPROC’ : missing storage-class or type specifiers
\glh\glh_genext.h(57) : fatal error C1004: unexpected end of file found

Hope for a swift and good answere

Many thanx

Lee Sandberg[/b]

These don’t appear to be standard headers and seem to be broken. I haven’t seen that constants before. Did you lift those headers from someone’s devkit distro? You’re probably missing some prerequisites, use the correct headers from a SDK from NVIDIA or ATI.

Yes, this are NVidia headers for windows (XP).

I am just trying to include the NVidia extension like glGetOcclusionQueryuivNV
and
glh_init_extension("GL_NV_occlusion_query ")
So the main project file allready have some openGL included. But in this file I need just to include a file allowing me to use these functions.

I am not sure what all the includes does
that I have included.

Thanx
Lee Sandberg

Can’t you just include gl.h and glext.h and be done with it?