[Gambas-devel] Warning in vb component

Laurent Carlier lordheavy at ...141...
Tue Jan 11 00:42:14 CET 2005


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.html

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,

-- 

Laurent Carlier




More information about the Devel mailing list