[Gambas-devel] Warning in vb component

Benoit Minisini gambas at ...1...
Tue Jan 11 11:13:03 CET 2005


On Tuesday 11 January 2005 00:42, Laurent Carlier wrote:
> i've got this warning while building vb component :
> vb.c: In function `CVB_Round':
> vb.c:263: warning: implicit declaration of function `exp10'
> vb.c:265: warning: implicit declaration of function `round'
>
> exp10 seems to be a GNU extension, i've found a workaround here :
> http://linux-documentation.com/en/package/glibc/Exponents-and-Logarithms.ht
>ml
>
> replace exp10(x) with exp (x * log (10))
>
> and for round i've found this here :
> http://sources.redhat.com/ml/bug-glibc/2001-10/msg00022.html
>
> "Since these functions are introduced by C99 you need to define at least
> _ISOC99_SOURCE (or _GNU_SOURCE) to get their declarations from <math.h>.
> *Note (libc)Feature Test Macros::."
>
> Regards,

I will rewrite the function without using exp10 nor round.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list