SPARC floating point functions from math.h

Rehab Massoud rehab.massoud at gmail.com
Sun Dec 11 20:17:35 UTC 2016


so finally resolved it by adding the line:

target_link_libraries(my_module m)

in the CMakeLists.txt file.

Thanks a lot Joel for the prompt response.

Best Regards,

Rehab Massoud

On Sun, Dec 11, 2016 at 8:59 PM, Rehab Massoud <rehab.massoud at gmail.com>
wrote:

> and as per your advice  __asm did the trick for the leon.h. But it was
> only masking the floating point functions linking error. So even with the
> -std=c99 option the linking is still not working.
>
> Best Regards,
>
> Rehab Massoud
>
> On Sun, Dec 11, 2016 at 8:46 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.
>>
>>>
>>>
>>>
>>> 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/93ead090/attachment-0002.html>


More information about the users mailing list