This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: abs(int) missing
Steven King wrote:
>
> On Fri, 18 Aug 2000, Levente Farkas wrote:
>
> >
> > this means that you can compile the above code ???
>
> Yes.
>
> > my compiled and used gcc (and libstdc++ is not the latest 2.96 20000724),
> > but I've got the latest cvs and I compare :
> > cstdlib
> > bits/std_cstdlib.h
> > shadow/stdlib.h
> > and these files are identical. so what else can be the problem ?
> > anyways the stdlib.h from glibc contain abs(int) but not abs(long) (just
> > labs(long)) who these function get into std ? the above three files
> > just include themself and the original stdlib.h (and move those functions
> > to the global namespace (???)).
>
> Look in shadow/bits/std_stdlib.h, there are definitions for abs(long) and even
> (if long long is enabled) abs (long long) . If you add the shadow
> directory to the include search path, cstdlib -> shadow/bits/std_cstdlib.h,
> cmath -> shadow/bits/std_cmath, etc.
how can I do that ? recompile gcc with --enable-cshadow-headers ?
-- Levente
"The only thing worse than not knowing the truth is
ruining the bliss of ignorance."