Skip to main content
d4ng3r09
Associate III
November 27, 2014
Question

can t compile ARM_MATH.h

  • November 27, 2014
  • 3 replies
  • 694 views
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?

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    November 28, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    d4ng3r09
    d4ng3r09Author
    Associate III
    November 28, 2014
    Posted on November 28, 2014 at 21:06

    Practically,what shall i do?

    Tesla DeLorean
    Guru
    November 28, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..