MCUXpresso complains "undefined reference to fmax"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso complains "undefined reference to fmax"

1,231 Views
hedj
Contributor I

I guess fmax is not implemented; what alternative choices do I have; which one is better?

BTW, there are a few other math functions like nan, isnand, isinfd not defined.

Basically I try to port a Windows application to ARM Cortex M4 chip.

Labels (1)
0 Kudos
2 Replies

1,097 Views
hedj
Contributor I

after I add math library (-lm), those errors are gone; however arm-none-eabi/bin/ld.exe complains "undefined reference to `__errno'".

There are a few errno.h under MCUXpresso IDE path. Which one shall I use?

0 Kudos

1,097 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Dear hedj@i2r.a-star.edu.sg‌,

You could also try to include the errno file the following way:

#include "errno.h"

The path should be automatically created when the project was created.

Best Regards,

Alexis Andalon

0 Kudos