error: 'glActiveTextureARB' was not declared in this scope

Nibbie
Posts: 1
Joined: 2010.11
Post: #1
Hi,
I'm trying to use the glActiveTextureARB() function and it simply won't work. I have #include <OpenGL/OpenGL.h> in level.h and all my other GL stuff works fine. Any idea why this isn't working?

level.cpp:21: error: 'glActiveTextureARB' was not declared in this scope
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
OpenGL/glext.h is the header you actually want. OpenGL/OpenGL.h appears to only have CGL stuff in it, which isn't relevant in this case.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
incidentally, <OpenGL/glext.h> is deprecated as of recently (10.4?). <OpenGL/gl.h> gets you everything.
Quote this message in a reply
Post Reply