Syntax error about "__weak","__attribute__((weak))"
a sw4stm32 project generated by stm32cubemx, and I use Ubuntu linux 14.04 OS,
There is a problem,when I build the project ,an error occurred:
Description Resource Path Location Type make: *** [Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o] Error 1
in file stm32f4xx_hal.c:
__weak void HAL_MspDeInit(void) { /* NOTE : This function Should not be modified, when the callback is needed, the HAL_MspDeInit could be implemented in the user file */ }
Syntax erro at “__weak”, but I have add settings in
Properties->C/C++ General->Path and Symbols->Symbols
Symbol Value __weak "__attribute__((weak))"+-
How to fix this problem?