AnsweredAssumed Answered

How to use Math functions with MCUXpresso?

Question asked by Mark Butcher on Aug 20, 2018
Latest reply on Aug 27, 2018 by Mark Butcher

Hi All

 

Any ideas as to how to use math functions in MCUXpresso?

 

The project in hand can't link due to missing math library, eg
FLASH_target/../Applications/Project/time.c:213: undefined reference to `sin'
FLASH_target/../Applications/Project/calculations.c:219: undefined reference to `tan'
FLASH_target/../Applications/Project/calculations.c:220: undefined reference to `atan'
... etc.

 

Normally I add -lm to link in the GCC math libraries but this has no effect here.

 

In the project properties there is a tab to add libraries but which one is needed, or which path?


Searing in the IDE user's guide the only reference too math is with respect to Redlib extension:

Thanks in advance for any help.

 

regrds

 

Mark

 

P.S Also the same problem when trying with KDS....

Outcomes