math.h

Guest #1171812
Rate this post
useful
not useful
Kim Madsen wrote:
> Hi
> Why does it not work.
>
> float logEx,dew_point,mellem = log10(h);
>   logEx=0.66077+7.5*t/(237.3+t)+(mellem-2);
>   dew_point = (logEx - 0.66077)*237.3/(0.66077+7.5-logEx);
>   return dew_point;
>
> I got a linker error.?

Not enough information. Which error? Option -lm used for linking?
OP #1171813
Rate this post
useful
not useful
Martin Thomas wrote:
> Kim Madsen wrote:
>> Hi
>> Why does it not work.
>>
>> float logEx,dew_point,mellem = log10(h);
>>   logEx=0.66077+7.5*t/(237.3+t)+(mellem-2);
>>   dew_point = (logEx - 0.66077)*237.3/(0.66077+7.5-logEx);
>>   return dew_point;
>>
>> I got a linker error.?
>
> Not enough information. Which error? Option -lm used for linking?

It is undefine reference to  'log10'
This is the arm-gnu I am using.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now