Using sqrt() in RTEMS Task
Till Straumann
strauman at slac.stanford.edu
Thu Jul 24 15:43:38 UTC 2008
Christian Poessinger wrote:
> Hello,
>
> is it possible to use the sqrt() call in RTEMS tasks, or is this function
> only available to POSIX tasks? I tried including the math.h and appending
> a -lm to my LIBS var in the Makefile but I always receive the error:
>
> o-optimize/lat.o: In function `sTask':
> /home/source/RTEMS/lat/lat.c:80: undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make: *** [o-optimize/lat.exe] Error 1
>
As Joel already pointed out, this seems to be a linkage
problem. Nobody can help you unless you at least
post the *COMPLETE* unedited console log.
We need to see the commands (with all the arguments etc.)
that eventually caused this failure.
T.
> It looks like to me that math.h and libm.a could not be found.
>
> Thanks.
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list