I have a c++ application that is utilizing the math.h library and calling fabs. When I run this on my hardware (F28335) I found that the code was getting stuck constantly calling fabs. Upon investigation I discovered that in the cpp_inline_math.h file, the inline fabs function calls fabsf. However, fabsf is #defined to be fabs, thus resulting in infinite recursion. Is there some other include file I should be using when trying to use the math library functions, because I don't see how the cpp_inline_math.h file could possibly ever work?
I would appreciate it if somebody could clarify this for me. Thanks.
Stephen