本帖最后由 asiaschain 于 2013-1-19 23:35 编辑
自动绕线机.rar
(8.05 KB)
struct save
{
unsigned char code;
unsigned int d;
unsigned int n;
unsigned int w;
}str[50];
struct save str[50]__attribute__((section(".eeprom")));
extern struct style style_buffer;
//********************************************************************
void save(void)
{eeprom_write_block(style_buffer,str[style_buffer.code],6);}
//*******************
我这里定义的全局变量style_buffer怎么提示错误
../sxj009.c:497: error: 'style_buffer' has an incomplete type
请大哥大姐指点一下GCC编译有12个错误这个定义不了,兄弟我想diy电脑绕线机这读写eeprom时编译不过,
要是解决了请邮件asiaschain@yahoo.com.cn
下面是全部源代码
|