This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error when compiling XFree86 on gcc 3.0


I tried Declaring "unctrl" as int type but then it is giving so many parse 
errors in other header files. I have also tried removing pedantic tag in 
Makefile then also it hasn't compiled. 
What should i do now.
Thanks for ur help

Murali

On Wednesday 08 August 2001 06:37, you wrote:
> It may be a rather weak suggestion and might not compile, but my
> understanding is that the default type is int, so you could simply insert
> that. Failing that, is there a flag in the Makefile for strict,
> strict-no-alias, or pedantic? You could perhaps remove this flag and get a
> slightly happier gcc. ;)
>
> DanL
>
> On Wed, 8 Aug 2001, Murali Potla wrote:
> > Thanks everybody for your  help
> > but i have a new problem now
> >
> > When I am trying to compile to XFree86-4.0.3 on gcc -3.0
> > it's giving an parser error
> >
> > Error:
> >
> > In file included from
> > /usr/lib/gcc-lib/i386-aryan-linux/3.0/include/curses.h:86,
> > from resize.c:293:
> > /usr/include/ncurses/unctrl.h:57: parse error before "unctrl"
> > /usr/include/ncurses/unctrl.h:57: ISO C forbids data definition with no
> > type or
> > storage class
> > make[3]: *** [resize.o] Error 1
> > make[2]: *** [install] Error 2
> > make[1]: *** [install] Error 2
> > make: *** [install] Error 2
> >
> > What's wrong here
> >
> > I am sending that file unctrl.h as attchment
> >
> > Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]