Not a direct bug
Stelios Xanthakis
axanth@tee.gr
Fri Jan 5 06:21:00 GMT 2001
Hi guys,
I've been hacking like mad for 5 months to release a big program (lndbase-2.0)
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.
I received feedback from people where a statement like:
Myputs ("Notify about something");
issues a qualifier discards const... converting char* to const char*.
And this is a fatal error for them.
A very embarrassing bug for me.
Would it be possible to explain what could distribution people have done
to their compiler configuration to produce that error?
A way to fix it?
It is often difficult to be correct with all the "const" in function arguments
but I do not want that to produce a fatal error.
The program is C++
Thanks in advance
Stelios Xanthakis
More information about the Gcc
mailing list