EmBitz
Errors when linking math lib. - Printable Version

+- EmBitz (https://www.embitz.org/forum)
+-- Forum: IDE (https://www.embitz.org/forum/forum-1.html)
+--- Forum: ARM GCC toolchain (https://www.embitz.org/forum/forum-4.html)
+--- Thread: Errors when linking math lib. (/thread-18.html)



Errors when linking math lib. - pdaragon - 25-09-2020

Hello,
I try to import a Keil project published by Semtech (firmware of the LoRa SX1261 evaluation kit).
I almost succeeds, but face 5 remaining errors when the linker searches for <math.h> following functions: rint, round, floor, ceil.
I tried to change several options in "Linker setttings/Library selection", but without success.
Please could you help.
I attach the .ebp project with this post (STM32L476RG HAL source files has been removed to limit zip file size to less than 1Mb).
Thanks and regards
Pascal


RE: Errors when linking math lib. - Polarisru - 14-04-2022

(25-09-2020, 06:59 PM)pdaragon Wrote: Hello,
I try to import a Keil project published by Semtech (firmware of the LoRa SX1261 evaluation kit).
I almost succeeds, but face 5 remaining errors when the linker searches for <math.h> following functions: rint, round, floor, ceil.
I tried to change several options in "Linker setttings/Library selection", but without success.
Please could you help.
I attach the .ebp project with this post (STM32L476RG HAL source files has been removed to limit zip file size to less than 1Mb).
Thanks and regards
Pascal

You probably need to define math library under project libraries, I don't see any definition there.

I mean Build options->Linker settings->Libraries

Just put a single "m" there (without quotes). You will see "-lm" in you compiler output then.