[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using sqrt() in RTEMS Task
- Date: Thu, 24 Jul 2008 08:43:38 -0700
- From: strauman at slac.stanford.edu (Till Straumann)
- Subject: Using sqrt() in RTEMS Task
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
>