This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How does one identify HP-UX with broken inline math funs?
- To: Robert Lipe <robertlipe at usa dot net>
- Subject: Re: How does one identify HP-UX with broken inline math funs?
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 12 May 2000 19:50:48 +0100 (BST)
- CC: Jeffrey A Law <law at cygnus dot com>, Bruce Korb <bkorb at sco dot COM>, gcc at gcc dot gnu dot org
> 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?