Floating point division in native .mpy modules

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
carsten
Posts: 15
Joined: Wed Aug 16, 2017 3:08 pm

Floating point division in native .mpy modules

Post by carsten » Thu Feb 06, 2020 8:16 pm

Anytime I want to do a division or comparison with floats, I get an undefined symbol error by the linker. How can I include them?

User avatar
Roberthh
Posts: 1845
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Floating point division in native .mpy modules

Post by Roberthh » Thu Feb 06, 2020 8:49 pm

Would you mind to post the error message and tell, which port and version you are using?

carsten
Posts: 15
Joined: Wed Aug 16, 2017 3:08 pm

Re: Floating point division in native .mpy modules

Post by carsten » Thu Feb 06, 2020 8:52 pm

It's for the ESP32/xtensawin, latest git version compiled on MacOS.

That's the error for a division:

Code: Select all

LinkError: build/mylib.o: undefined symbol: __divsf3
And that's a comparison:

Code: Select all

LinkError: build/mylib.o: undefined symbol: __extendsfdf2

Post Reply