exp10() error on winXP svn 15713

Chris Shoemaker c.shoemaker at cox.net
Wed Mar 14 00:10:16 EDT 2007


On Tue, Mar 13, 2007 at 11:04:50PM -0400, Nathan Buchanan wrote:
> Hello!
> 
> I ran into the following error when building svn 15713:
> 
> ../../../repos/src/app-utils/gnc-ui-util.c: In function `integer_to_words':
> ../../../repos/src/app-utils/gnc-ui-util.c:1605: warning: implicit
> declaration of function `exp10'
> make[4]: *** [gnc-ui-util.lo] Error 1
> make[4]: Leaving directory `/c/soft/gnucash/build/src/app-utils'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/c/soft/gnucash/build/src/app-utils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/c/soft/gnucash/build/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/c/soft/gnucash/build'
> make: *** [all] Error 2
> 
> it looks like exp10() is not defined - at least on my ststem. The call to
> exp10() was added as part of r15677. Related lines:
> 
>   while (val >= 1000) {
>     log_val = log10(val) / 3 + FUDGE;
>     pow_val = exp10(log_val * 3) + FUDGE;

Does it work if you change this line to:

      pow_val = exp(log_val * 3 * G_LN10) + FUDGE;

-chris

>     this_part = val / pow_val;
>     val -= this_part * pow_val;
>     tmp = integer_to_words(this_part);
>     g_string_append_printf(result, "%s %s ", tmp,
>                            gettext(big_numbers[log_val]));
>     g_free(tmp);
>   }
> 
> Nathan
> 
> PS: this is with a fresh checkout and after I removed the build directory.
> -- 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> A conclusion is the place where you got tired of thinking.
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel


More information about the gnucash-devel mailing list