cancel
Showing results for 
Search instead for 
Did you mean: 

can t compile ARM_MATH.h

d4ng3r09
Associate II
Posted on November 27, 2014 at 21:35

Hi, I am using coide and arm gcc compiler to build my projects.

When i try to compile arm_math.h ,i got those  errors a LOT of times.

unknown type name '__INLINE

 expected '=', ',', ';', 'asm' or '__attribute__' before 'clip_q63_to_q31'

 expected '=', ',', ';', 'asm' or '__attribute__' before 'clip_q63_to_q15'

And so it goes on..

Does anybody have any usefull suggestions?

3 REPLIES 3
Posted on November 28, 2014 at 02:53

You try to ''compile'' it?

The INLINE stuff is compiler specific stuff coming from core_cm4.h, which would get pulled in with the ARM_MATH_CM4 define. The core_cm4.h being pull via stm32f4xx.h

I guess you should look at your project construction, and if your compiler has an -mcpu=cortex-m4

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
d4ng3r09
Associate II
Posted on November 28, 2014 at 21:06

Practically,what shall i do?

Posted on November 28, 2014 at 22:13

Practically,what shall i do?

Look at how others are building projects successfully for your chosen platform/tool-chain. And then do THAT.

There's no point you trying to reinvent the wheel here if you don't grasp how wheels are made or work.

I'm pretty sure the way ST created the SPL that arm_math.h gets included via stm32f4xx.h

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..