[GEM-dev] GEMglBitmap.cpp / glBindProgramARB compilation error
james tittle
tigital at mac.com
Wed Feb 2 16:41:04 CET 2005
...this is a f-asked-q, but unfortunately also a f-unanswered-q...
On Feb 2, 2005, at 10:30 AM, patrick wrote:
> c++ -c -g -g -O2 -DNEW_VIDEOFILM -fPIC -mmmx -I../
> -I/usr/local/include/avifile-0.7 -I/usr/local/include/FTGL/
> -I/usr/include/freetype2/ -I/usr/local/include/ -fno-builtin -O3
> -funroll-loops -ffast-math GEMglBitmap.cpp -o GEMglBitmap.o
> GEMglBindProgramARB.cpp: In member function `virtual void
> GEMglBindProgramARB::render(GemState*)':
> GEMglBindProgramARB.cpp:48: error: `glBindProgramARB' undeclared
> (first use this function)
> GEMglBindProgramARB.cpp:48: error: (Each undeclared identifier is
> reported only once for each function it appears in.)
> make[1]: *** [GEMglBindProgramARB.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/home/patrick/src/Gem/src/openGL'
> make: *** [subdirs] Error 255
...well, you're either on linux or windoze, because this works on
osx...what version of opengl are your headers? It just occurred to me
that we only check for GL_ARB_vertex_program in the preprocessor, and
then assume it's ok to use glBindProgramARB later...however it may be
that you have a gl 2.0 implementation, and need to use glBindProgram
without the ARB...
...just guessing: could you search your gl.h/glext.h for VERSION and
then also for glBindProgram?
l8r,
jamie
More information about the GEM-dev
mailing list