unknown type name '__weak' after Building project
Hi all :
last week i transform my system form WIN10 to mac os
so I need transform Keil MDK project to STM32CubeIDE
below is my step
1.using STM32Cube MX Created STM32CubeIDE project
( it can compile and download successful)
2.copy my BSP/ library form Keil MDK folder
3.add library path to
"Properties -> C/C++ General -> Paths and Symbols -> Includes ->GNU C"
and follow this article i check my project ids using GNU11
https://community.st.com/s/question/0D50X00009Xka2a/weak-clang
but I got the error message after Building project
../Drivers/Library/Src/button.c:232:1: error: unknown type name '__weak'
../Drivers/Library/Src/button.c:232:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'BTN_now'
make: *** [Drivers/Library/Src/subdir.mk:24: Drivers/Library/Src/button.o] Error 1
make: *** Waiting for unfinished jobs....
can some help me that , thanks
my environment
STMcubeIDE : 1.5.0
Mac os : macOS Big Sur (Intel i5 version)
B.R.
