[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pow10
From: |
Andreas Jaeger |
Subject: |
Re: pow10 |
Date: |
Tue, 25 Jun 2002 07:03:39 +0200 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Sam Halliday <address@hidden> writes:
> hello there,
>
> i feel a bit bad emailing this to you as you will most likely have many more
> important things to do... and i certainly feel worse that it is is bugs email
> address, im sure this is just my stupidity...
>
> i am running glibc-2.2.5 on a Linux from Scratch system, and in one of my c
> programs i am trying to call pow10(), but i always get
> warning: implicit declaration of function `pow10'
> despite that i have included math.h as usual... am i using the wrong header
> file? i have gcc-2.95.3
> a grep reveals that it is in a header file
> /usr/include/bits/mathcalls.h:102:__MATHCALL (pow10,, (_Mdouble_ __x));
Look closer and read the manual:
#ifdef __USE_GNU
/* A function missing in all standards: compute exponent to base ten. */
__MATHCALL (exp10,, (_Mdouble_ __x));
/* Another name occasionally used. */
__MATHCALL (pow10,, (_Mdouble_ __x));
#endif
define _GNU_SOURCE and you're fine. Never define any __USE* macro
yourself,
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj
- pow10, Sam Halliday, 2002/06/24
- Re: pow10,
Andreas Jaeger <=