This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: abs function question
Nathan Myers <ncm-nospam@cantrip.org> writes:
| On Tue, Jul 29, 2003 at 06:39:30AM +0200, Gabriel Dos Reis wrote:
| > Steve Ellcey <sje@cup.hp.com> writes:
| >
| > | I am currently running into a problem with the function abs and the
| > | header std_cstdlib.h.
| >
| > Huh!? How can an inline definition could possibly clash with a using
| > declaration? Some piece of information is missing. Could tell us
| > more about that inline declaration?
|
| I think he's saying that if __cplusplus is defined, no abs is declared
| at all,
How do you read that from
The problem is that my system's stdlib.h header file is smart enough to
not do an extern declaration for abs if it is in C++ mode and *instead
does an inline declaration of the abs function*.
?
(emphasis is mine)
-- Gaby