[En-Nut-Discussion] log10f not suportet?

Kim Madsen k_madsen at esenet.dk
Thu Oct 5 18:56:47 CEST 2006


----- Original Message ----- 
From: "Harald Kipp" <harald.kipp at egnite.de>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Thursday, October 05, 2006 5:58 PM
Subject: Re: [En-Nut-Discussion] log10f not suportet?


> Kim,
>
> At 23:05 02.10.2006 +0200, you wrote:
>>Is the math.h not surported.
>>I got error from the linker.
>>-------------------------------------------
>>  float logEx,dew_point;
>>  logEx=0.66077+7.5*t/(237.3+t)+(log10(h)-2);
>>  dew_point = (logEx - 0.66077)*237.3/(0.66077+7.5-logEx);
>>  return dew_point;
>>
>>the error is at log10
>
> Nut/OS doesn't support floating point (only for formatted printing).
> You have to check your compiler, or more precisely, the runtime
> lib.
>
> Harald
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

Yes
but adding the -lm to the init string in makefile and it works with acr-gcc
-lnutpro -lnutos -lnutarch -lnutdev -lnutarch -lnutnet -lnutfs -lnutcrt
->  -lm -lnutpro -lnutos -lnutarch -lnutdev -lnutarch -lnutnet -lnutfs -lnutcrt
Regards
Kim Madsen 




More information about the En-Nut-Discussion mailing list