ogl-sample
[Top] [All Lists]

Re: Gcc 3.2 and glu.h....

To: ogl-sample@xxxxxxxxxxx
Subject: Re: Gcc 3.2 and glu.h....
From: Jon Leech <ljp@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Sep 2002 13:47:31 -0700
In-reply-to: <1032899387.3d90cb3b3ad8e@xxxxxxxxxxxxxxxxxxxxxxx>
References: <1032899387.3d90cb3b3ad8e@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: ogl-sample-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.27i
On Tue, Sep 24, 2002 at 09:29:47PM +0100, josephn@xxxxxxxxxxxxxxxx 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

<Prev in Thread] Current Thread [Next in Thread>