07-29-2002, 06:05 PM
Hi,
I recently upgraded my machine to mandrake 8.2, and I have finally got back to looking at opengl stuff. Anyways, after installing the nvidia header files, nothing that includes glu.h will compile! I get syntax
errors in glu.h, as follows:
make
gcc -Wall -ansi lesson11.c -o lesson11 -L/usr/X11R6/lib -lGL -lGLU -lm `sdl-config --cflags --libs`
In file included from lesson11.c:17:
/usr/include/GL/glu.h:263: parse error before `*'
/usr/include/GL/glu.h:265: syntax error before `void'
/usr/include/GL/glu.h:265: warning: data definition has no type or storage class/usr/include/GL/glu.h:266: syntax error before `void'
(above is nehe lesson 11 SDL version).
the error relates to two #define's that
are missing from the file, GLAPIENTRY and
GLAPI, which seem to be defined in gl.h
in the mesa version of the file, but not in the nvidia version of gl.h
anyone else run into a problem like this? I
tried cheating and adding those defines to glu.h directly, but I am sure that is not the right solution is it????
any help appreciated, thanks.
I recently upgraded my machine to mandrake 8.2, and I have finally got back to looking at opengl stuff. Anyways, after installing the nvidia header files, nothing that includes glu.h will compile! I get syntax
errors in glu.h, as follows:
make
gcc -Wall -ansi lesson11.c -o lesson11 -L/usr/X11R6/lib -lGL -lGLU -lm `sdl-config --cflags --libs`
In file included from lesson11.c:17:
/usr/include/GL/glu.h:263: parse error before `*'
/usr/include/GL/glu.h:265: syntax error before `void'
/usr/include/GL/glu.h:265: warning: data definition has no type or storage class/usr/include/GL/glu.h:266: syntax error before `void'
(above is nehe lesson 11 SDL version).
the error relates to two #define's that
are missing from the file, GLAPIENTRY and
GLAPI, which seem to be defined in gl.h
in the mesa version of the file, but not in the nvidia version of gl.h
anyone else run into a problem like this? I
tried cheating and adding those defines to glu.h directly, but I am sure that is not the right solution is it????
any help appreciated, thanks.