Which library includes 'glBindProgramNV' etc?

When compiling tests and examples of BrookGPU I get many of the following errors:

undefined reference to glBindProgramNV' undefined reference to glProgramNamedParameter4fNV’
undefined reference to glLoadProgramNV' undefined reference to glGenProgramsNV’
undefined reference to glXChooseFBConfig' undefined reference to glXDestroyPbuffer’
undefined reference to glXCreatePbuffer' undefined reference to glXCreateNewContext’

used LDFLAGS:
-lpthread -L/usr/X11R6/lib -L…/…/…/bin -lbrook -lcpu -lnv30gl -lX11 -lXmu -lXt -lGL -lGLU.

Are there any version conflicts of OpenGL?

Make sure you have the latest drivers for your video card.

Those will be defined in -lGL if your driver supports them. Try glxinfo. If NV_fragment_program and SGIX_pbuffer aren’t listed then you are SOL.

Actually, I believe Mesa supports those extensions in software.

If the example code is trying to bind to those functions at link time, it’s crap. The whole reason glXGetProcAddressARB exists is to deal with issues like this. Sigh…

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.