Using glh_extensions.h from nvidia.

Can anyone help me with the glh_extensions.h library from nvidia?

I downloaded this library and glh_genext.h from nvidia’s server.(

If I include this library for initializing the extensions (arb, wgl, etc…) I get an error that says:

“c:/Path…/glh_genext.h(95) : error C2146: syntax error : missing ‘;’ before identifier ‘glMultiTexCoord1d’”

But if I initialize the pointers manually and don’t use the glh_extensions all works fine.

How can I get the last version of the glh_extensions and glh_genext libraries?

How should I use them? Is there a good example or a paper from nvidia?

Thanks for your helping.

PD: I’m using Visual C.

You can grab glext.h and wglext.h here:

To use any extension you need to make sure the card supports it by checking the extension string, then use wglGetProcAdress(…) to get the function pointer.

Try downloading the NVSDK. It also provides lots of examples using the glh extension libraries.

Thanks for your helping!