This is the mail archive of the gcc-bugs@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: egcs-19981122 fails to compile xpdf-0.80 on Solaris 2.6 x86


On Nov 30, 1998, Bernard Michaud <bmichaud@excom.com> wrote:

> This was the attempt to compile xpdf-0.80 using egcs-19981122 on a dual
> Pentium Pro running Solaris 2.6 x86:

> LTKButtonDialog.cc:97: passing `const char *' as argument 3 of
> `LTKButton::LTKButton(char *, int, char *, LTKButtonAction, void
> (*)(LTKWidget *, int, int))' discards qualifiers
> LTKButtonDialog.cc:101: passing `const char *' as argument 3 of
> `LTKButton::LTKButton(char *, int, char *, LTKButtonAction, void
> (*)(LTKWidget *, int, int))' discards qualifiers

Well, based on the error message you posted without the corresponding
source code, I can only agree with egcs.  You can't pass a `const
char*' where a `char*' is expected.  xpdf seems to be in error.

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil



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