keil报错:error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with

error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions

官方的解释:https:/www.keil.com/support/man/docs/armcc/armcc_chr1359124962747.htm
keil报错:error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with_第1张图片
keil报错:error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with_第2张图片
只要把这个加上就可以去掉报错。
keil报错:error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with_第3张图片

你可能感兴趣的:(keil,单片机,mcu)