Undefined reference to 'floor'

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,
I'm working on XMC4500 hexagon kits. I want to display some float values on the HMI_Kit OLED. I'm using the GUILC001 app by the emWin Segger library. When calling the
GUI_DispFloat() function, I got these errors:

929.attach

At first, I thought I hadn't linked the math library, but then I found -lm in the compiler option. I can't find other problem in the program. Does anyone know how I can fix these errors?
Best regards,
0 Likes
4 Replies
Not applicable
Hi,

Have you check on this TIP of the day on setup the math library?
http://www.infineonforums.com/threads/823-DAVE-TIP-of-the-day-Things-need-to-do-when-use-math-functi...
0 Likes
Not applicable
I did as the TIP said, but didn't work.
Jackson wrote:
Hi,
Have you check on this TIP of the day on setup the math library?
http://www.infineonforums.com/threads/823-DAVE-TIP-of-the-day-Things-need-to-do-when-use-math-functi...
0 Likes
Not applicable
Hi,

You need to move the GUI library above the math library in the Library Setting.
I guess you missed this step.
933.attach
0 Likes
Not applicable
That's the problem. Thank you very much!
Jackson wrote:
Hi,

You need to move the GUI library above the math library in the Library Setting.
I guess you missed this step.
933.attach
0 Likes