標(biāo)題: error C267: 'SectorErase': requires ANSI-style prototype求解決 謝謝 [打印本頁(yè)]

作者: 132134456    時(shí)間: 2017-4-11 15:32
標(biāo)題: error C267: 'SectorErase': requires ANSI-style prototype求解決 謝謝
111.C(72): warning C206: 'SectorErase': missing function-prototype
111.C(72): error C267: 'SectorErase': requires ANSI-style prototype




char xdata DisplayBuf[10];  //當(dāng)前讀出卡的ID
char xdata DisplayBuf_c[10];  //當(dāng)前單片機(jī)里存的卡ID
void write_eeprom()
{

        SectorErase(0x2000);                   //清空
    byte_write(0x2000,TempPassword[0]);
          byte_write(0x2011,TempPassword[1]);
         byte_write(0x2002,TempPassword[2]);
         byte_write(0x2003,TempPassword[3]);
         byte_write(0x2004,TempPassword[4]);
         byte_write(0x2005,TempPassword[5]);                        
        byte_write(0x2060,0x01);


作者: unhuyou    時(shí)間: 2017-4-11 17:02
SectorErase 函數(shù)沒(méi)找到原型,這個(gè)是別處copy的?
作者: 132134456    時(shí)間: 2017-4-12 12:44
對(duì)的  這個(gè)該怎么解決呢




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1