Using sqrt() in RTEMS Task

Christian Poessinger xcp at mixed-mode.de
Thu Jul 24 07:18:01 UTC 2008


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

It looks like to me that math.h and libm.a could not be found.

Thanks.





More information about the users mailing list