我在用keil编译程序中出现了问题。提示是这样的。
..\Network\esp8266.h(36): error: #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
所涉及的内容是
extern struct STRUCT_USARTx_Fram
{
char Data_RX_BUF;
union {
__IO uint16_t InfAll;
struct {
__IO uint16_t FramLength :15;
__IO uint16_t FramFinishFlag :1;
} InfBit;
};
} strPc_Fram_Record, strEsp8266_Fram_Record;
改了好多地方,都没办法消除错误,网上也没有找到解决的办法。请教大神如何解决。。。在线等。。。
我在用keil编译程序中出现了问题。提示是这样的。
..\Network\esp8266.h(36): error: #3092: anonymous unions are only supported in --gnu mode, or when enabled with #pragma anon_unions
所涉及的内容是
extern struct STRUCT_USARTx_Fram
{
char Data_RX_BUF;
union {
__IO uint16_t InfAll;
struct {
__IO uint16_t FramLength :15;
__IO uint16_t FramFinishFlag :1;
} InfBit;
};
} strPc_Fram_Record, strEsp8266_Fram_Record;
改了好多地方,都没办法消除错误,网上也没有找到解决的办法。请教大神如何解决。。。在线等。。。