Issue
I have a C project which was running on ARM architecture using the arm-none-eabi-gcc compiler and now I am trying to compile it natively on windows using the gnu99 compiler because i need to unit test and it was difficult to do it on the actual hardware.
However the compiler is not recogonziing the static inline commands although i included the inline flag in my makefile, as follows: CFLAGS += -fgnu89-inline
Below is the error i am getting:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' __STATIC_INLINE void
Does anyone have an idea on how to let the compiler recognize the inline commands?
Solution
The name __STATIC_INLINE
is not a part of standard C. You either need to provide a macro definition for it, or you should replace __STATIC_INLINE
with static inline
.
Answered By - David Grayson Answer Checked By - Terry (WPSolving Volunteer)