This is the mail archive of the gcc@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: How does one identify HP-UX with broken inline math funs?


> If you whack these bogus inlines, then the only decl for abs you get
> is in stdlib.h. If it's C++, the only decl it sees is for int and not
> for double.  It isn't extern "C" and then there is no signature that
> matches 'abs(double)'.  Thefore, libstdc++/cmath goes down in flames
> when building C++ that passes the double to abs().
...
> As always, I'm happy to do the right thing, I just need help figuring
> out what it is. :-)

How about replacing the inline definition with a prototype declaration?
Would that work?

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