[Tinyos-help] Undefined reference to pow and sqrt functions in telosb!!!

Paul Stickney pstickne at gmail.com
Wed Jul 2 00:03:37 PDT 2008


You must link in the math library (-lm) -- also support may be
platform dependent and/or emulated.

On Tue, Jul 1, 2008 at 7:02 AM, John Paul <jpvarkey at gmail.com> wrote:
> Hi,
> I am working on telosb motes. I am using the pow and sqrt functions of
> math.h library. I include the math.h header file in the source code. When i
> typed the command "make telosb", it gave me the following errors.

> app.c:(.text+0x4486): undefined reference to `pow'
> app.c:(.text+0x44a8): undefined reference to `pow'
> app.c:(.text+0x44b8): undefined reference to `sqrt'
>
>
> While if i compiled of micaz it didn't show any error.
>
> Could someone help in this regard. Help appreciated.
>
>
> Regards,
> john Paul
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


More information about the Tinyos-help mailing list