错误记录:error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
1 错误记录
..\Modules\libdw1000\inc\libdw1000Types.h(39): error: #3093: anonymous structs are only supported in --gnu mode, or when enabled with #pragma anon_unions
2 解决办法
使用别人的库时出现此类报错,原因是未包含gnu命令选项;
在keil中勾选即可