[Gambas-devel] Warning in vb component

Brandon Bergren bdragon at ...185...
Tue Jan 18 18:15:46 CET 2005


On Tue, 11 Jan 2005, Benoit Minisini wrote:

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

Incidentally, this affects Cygwin also. (cygwin uses newlib, not glibc, so 
most glibc assumptions will NOT work.)

I was working around this with a couple of //'s, but it'll be nice to have 
a proper fix.

Thanks.
--Brandon


>
> Regards,
>
> -- 
> Benoit Minisini
> mailto:gambas at ...1...
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel




More information about the Devel mailing list