Re: Gcc 3.2 and glu.h....
Jon Leech <[email protected]> Tue, 24 Sep 2002 13:47:31 -0700
| Newsgroups | gmane.comp.video.opengl.sample.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 24, 2002 at 09:29:47PM +0100, [email protected] wrote: > Hy! > > I'm sending this cos, I now have the lastest version of gcc, gcc (GCC) 3.2 > (Mandrake Linux 9.0 3.2-1mdk), and I can't compile my OpenGL programs. > > This are the errors: > > --------------------------------------------------------------------- > In file included from ../includes/xwin.hpp:11, > from vel_ac.cpp:1: > /usr/X11R6/include/GL/glu.h:261: parse error before `*' token > /usr/X11R6/include/GL/glu.h:263: syntax error before `void' [...] Does your program compile with previous versions of gcc? This looks like a compiler bug - the offending line appears to be the first place the 'GLUnurbs' typedef is used after its definition - although without more data I'm kinda guessing as to what your compiler is seeing. The trivial test program #include <GL/glu.h> int main() { return 1;} compiles without errors on Mandrake 8.2 running either gcc or g++ 2.96, with the NVIDIA_kernel-1.0-2960.mdk82up and NVIDIA_GLX-1.0-2960 RPMs installed. Give it a try on your system and see what happens. Jon Leech SGI