本帖最后由 Rain_King 于 2013-3-19 13:43 编辑
前几天刚在win7下安装了MPLB IDE,由于是初次接触,不是很熟悉。
问题如下:
在我进行编译的时候怎么每次都提示这个错误:
Error [277] D:\Program Files (x86)\HI-TECH Software\PICC\9.80\include\eeprom_routines.h; 43.50 can't mix prototyped and non-prototyped arguments
Error [372] D:\Program Files (x86)\HI-TECH Software\PICC\9.80\include\eeprom_routines.h; 43.57 "," expected
Error [372] D:\Program Files (x86)\HI-TECH Software\PICC\9.80\include\eeprom_routines.h; 44.29 "," expected
Error [277] D:\Program Files (x86)\HI-TECH Software\PICC\9.80\include\eeprom_routines.h; 44.29 can't mix prototyped and non-prototyped arguments
Error [313] D:\Program Files (x86)\HI-TECH Software\PICC\9.80\include\eeprom_routines.h; 44.94 function body expected
即使我使用最简单的程序,也有这个问题,我揣测是设置问题,可是我找不到,求解决.....
示例的程序是这个:
#include<pic.h>
void main(void)
{
int a=1;
}
PS:
extern void eecpymem(volatile unsigned char *to, eeprom unsigned char *from, unsigned char size);
extern void memcpyee(eeprom unsigned char *to, const unsigned char *from, unsigned char size);
我双击错误之后,会指向这两条代码的地方,如果我把这个给注释掉,就不会提示这个错误,但是我想问的是,这个有什么错误,这两条代码是软件本身的eeprom_routines.h头文件里的。
|