SPARC floating point functions from math.h

Rehab Massoud rehab.massoud at gmail.com
Sun Dec 11 21:31:38 UTC 2016


Thanks Joel, you're right. The std option didn't have any effect. And the
problem was in the CMake files, including -lm as a linking flag wasn't
enough. Where adding the line
target_link_libraries(my_module m) resolved the problem.
On Dec 11, 2016 22:25, "Joel Sherrill" <joel at rtems.org> wrote:

>
>
> On Dec 11, 2016 1:47 PM, "Rehab Massoud" <rehab.massoud at gmail.com> wrote:
>
> On Sun, Dec 11, 2016 at 8:29 PM, Joel Sherrill <joel at rtems.org> wrote:
>
>>
>>
>> What did you do to link against libm. What was the actual command line
>> for linking?
>>
>  In a cmake's CMakeCache.txt file I added -lm at the linking options. But
> this didn't work alone without the -std=c99.
>
>
> Copy and paste the generated gcc command which was invoked to link. The
> -std option really doesn't have any impact on the libm issue.
>
>
>>
>>
>> Best Regards,
>>
>> Rehab
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20161211/133af3e1/attachment.html>


More information about the users mailing list