From: John Stone (johns_at_ks.uiuc.edu)
Date: Sun Sep 14 2003 - 14:44:31 CDT

Dave,
  Try adding this to the top of OpenGLExtensions.C (before the include lines):
#define GLX_GLXEXT_PROTOTYPES 1

I'll have to see what's in the latest version of the NVidia headers versus
the official ARB headers, in theory this shouldn't be necessary, but there
are many variations of those headers unfortunately.

Thanks,
  John Stone
  vmd_at_ks.uiuc.edu

On Thu, Sep 11, 2003 at 12:59:28PM -0700, Dave Humbird wrote:
> John,
>
> I have RH 9 Linux with an Nvidia card. The latest Nvidia headers (July 03)
> are in my /usr/include/GL. (They weren't when I wrote initially, but now
> they are and I still can't compile that file.) I don't understand the
> compiler error. I mean, the function glXGetProcAddressARB IS there, why
> isn't it found?
>
> Here's a listing of my /usr/include/GL. Can you compare against another
> Linux machine to see if something looks funny?
>
> Thanks for your help,
> dave
>
>
> -r--r--r-- 1 root root 284470 Sep 11 12:46 glext.h
> -r--r--r-- 1 root root 151592 Sep 11 12:46 gl.h
> -r--r--r-- 1 root root 15916 Feb 27 2003 glu.h
> -r--r--r-- 1 root root 7946 Feb 27 2003 GLwDrawA.h
> -r--r--r-- 1 root root 4433 Feb 27 2003 GLwDrawAP.h
> -r--r--r-- 1 root root 2309 Feb 27 2003 GLwMDrawA.h
> -r--r--r-- 1 root root 2311 Feb 27 2003 GLwMDrawAP.h
> -r--r--r-- 1 root root 25793 Sep 11 12:46 glxext.h
> -r--r--r-- 1 root root 9769 Sep 11 12:46 glx.h
> -r--r--r-- 1 root root 2543 Feb 27 2003 glxint.h
> -r--r--r-- 1 root root 2453 Feb 27 2003 glxmd.h
> -r--r--r-- 1 root root 51727 Feb 27 2003 glxproto.h
> -r--r--r-- 1 root root 11062 Sep 11 12:46 glxtokens.h
> -r--r--r-- 1 root root 8209 Feb 27 2003 osmesa.h
>
> Compiling OpenGLExtensions.C --> OpenGLExtensions.o ...
> OpenGLExtensions.C: In member function `void (*
> OpenGLExtensions::vmdGetProcAddress(const char*))()':
> OpenGLExtensions.C:128: `glXGetProcAddressARB' undeclared (first use this
> function)
> OpenGLExtensions.C:128: (Each undeclared identifier is reported only once
> for
> each function it appears in.)
>
> _________________________________________________________________
> Need more e-mail storage? Get 10MB with Hotmail Extra Storage.
> http://join.msn.com/?PAGE=features/es

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078