View Single Post
Old 01-30-04, 09:06 AM   #1
Registered User
Join Date: Jan 2004
Posts: 1
Default build problems with provided gl.h and glext.h headers in newest nvidia version


i would like to report a problem with the provided nvidia gl headers in the latest nvidia
driver version.

if one tries to compile the following code snippet by using the provided headers,
the following happens:

#include <GL/gl.h>
int main(int argc, char *argv[]) { return 0; }
In file included from GL/gl.h:62,
from test.c:2:
GL/glext.h:3178: parse error before "boolean"
In file included from test.c:2:
GL/gl.h:1706: conflicting types for `glPointParameterfv'
GL/glext.h:2114: previous declaration of `glPointParameterfv'
GL/gl.h:1731: conflicting types for `glMultiDrawArrays'
GL/glext.h:2111: previous declaration of `glMultiDrawArrays'
GL/gl.h:1749: conflicting types for `glSecondaryColorPointer'
GL/glext.h:2131: previous declaration of `glSecondaryColorPointer'
this is creating an issue in building certain software that makes use of the GL_GLEXT_PROTOTYPES preprocessor define and is documented in full detail on

i also attached a patch against the 5328 version to remedy the situation which you
can find here:

you also just recently added the glext.h to your driver release where i somehow can't
loose the impression that this was not meant to be included.

thanks in advance for any comment on this and for your continued support of the
Unix community!

tuhtah is offline   Reply With Quote