xuechunhao
2014-12-26 15:20
采纳率: 50%
浏览 2.3k
已采纳

MDK的结构体问题struct

typedef struct {
uint8_t lowsel;
uint8_t highsel;
} hl;
hl HighLowSel[16] = {{0x07,0x00},{0x06,0x00},{0x05,0x00},{0x04,0x00},
{0x03,0x00},{0x02,0x00},{0x01,0x00},{0x00,0x00},
{0x07,0x01},{0x06,0x01},{0x05,0x01},{0x04,0x01},
{0x03,0x01},{0x02,0x01},{0x01,0x01},{0x00,0x01}};
编译提示出错

.\Obj\Project.axf: Error: L6200E: Symbol HighLowSel multiply defined (by board.o and main.o).
请教,如何修改

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • 91program 2014-12-26 15:45
    已采纳

    HighLowSel 重复定义了,看看 board and main 两个模块吧

    点赞 打赏 评论

相关推荐 更多相似问题