glVertexAttribDivisorARB Link Error

Using glVertexAttribDivisorARB with NVIDIA gives me a link error.

undefined reference to `glVertexAttribDivisorARB’

And trying to use glVertexAttribDivisor gives me a compile error.

Why compilation time? Extension specific function pointers shall be loaded at run-time using wglGetProcAddress. I’m not 100% sure that this is the only way but as far as I know every extension library like GLEW and friends do it this way. Maybe that will solve your problem.

It seems like the glVertexAttribDivisorARB version isn’t exposed in the driver.

There should be a 3.3 gl.h file somewhere that defines glVertexAttribDivisor, right? Anyone know where I can get it?

Currently the NVIDIA 3.3 driver only exposes glVertexAttribDivisor. You’ll need to add the glVertexAttribDivisor prototype to your application until the NVIDIA driver exposes glVertexAttribDivisorARB correctly. Sorry about that.

This should be fixed now in the latest NVIDIA OpenGL 4.0 driver: