Not a direct bug
Joe Buck
jbuck@racerx.synopsys.com
Fri Jan 5 10:43:00 GMT 2001
> On Fri, 5 Jan 2001, Stelios Xanthakis wrote:
> > It does not compile on many people's systems, complaining about
> > "qualifier discards const".
> >
> > I have egcs-1.1.2 compiled from the source on my system.
> > My application compiled without even warnings.
>
> egcs 1.1.2 is quite old. Please install GCC 2.95.2 on your system and try
> with that. There is a good chance that your users already use that newer
> version, and that way you will be able to reproduce the problems.
Historically, old g++ and egcs releases accepted constructs that were not
legal C++ without any warnings (violations of protection of members,
violations of const). We've improved this with time, but it does mean
that if you have an application that has never been compiled with anything
but an old g++ or egcs release, you may now see more warnings or even
errors.
You don't give any source code, but you can probably get past the errors
just by adding casts.
More information about the Gcc
mailing list