which version of egcs are you using? We use 1.0.3 and 1.1.1. and did
not yet see this error message. I think, formally, this message is correct
and the prototype of the function should be "const Text_t *", however
by marking this as an error the compiler is fairly (too?) strick and
probably will break a lot of "old" code.
Once we have this version of egcs running we'll fix these problems.
Cheers, Fons.
>
> Hello Rooters,
>
> Using egcs with root and I'm finding compiling errors like:
> /usr/local/root/include/TROOT.h:175: invalid type `const char[3]' for default argument to `Text_t *'
>
> Which for this case refers to:
> void SetDefCanvasName( Text_t *name="c1") {fDefCanvasName = name;}
>
> Now this seems to be fixed if I cast "c1" as (Text_t *) But then as soon as I
> fix this I find a similar error with:
> TColor.h:34: invalid type `const char[1]' for default argument to `Text_t *'
>
> Do I have to fix every occurrence, or better, is there a compiler switch
> that I'm missing which will fix this?
>
>
>
> --
> Paul M. Eugenio
> Dept. of Physics
> Carnegie Mellon University
> (412) 268 6949
> eugenio@ernest.phys.cmu.edu
>
>
> _____________________________________________________
> / The scholar should know; one builds science with \
> o O 0 / the facts just like a house can be built of stones; \
> o | but an accumulation of facts is not a science just like |
> `\|||/ \ that a pile of stones is not a house. /
> (o o) \_____________________________________________________/
> ooO_(_)_Ooo___________________________________________Henri Poincare'_
> _____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____
> __|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_
> _____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|____
>
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910----- End of forwarded message from rdm -----
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910