[求助] MPLAB编译没错,连接出现c盘下的头文件错误是怎么回事啊

爱好汽车电子   2012-6-12 16:20 楼主
有哪位朋友用过MPLAB编译器,我写的PIC的程序,编译的时候是正确,但连接的时候出现的错误全是指向C盘下面的pic头文件啊     生成不了hex文件     希望哪位朋友能解释一下   非常感谢了
就像这样
Error   [285] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 24.24 no identifier in declaration
Error   [314] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 24.24 ";" expected
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 124.38 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 124.43 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 125.35 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 125.40 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 126.37 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 126.42 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 127.35 taking the address of this object is illegal

Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 127.40 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 128.35 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 128.40 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 129.27 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 129.32 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 130.27 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 130.32 simple integer expression required
Error   [201] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 131.27 taking the address of this object is illegal
Error   [236] C:\Program Files\HI-TECH Software\PICC\PRO\9.65\include\pic16f685.h; 131.32 simple integer expression required

********** Build failed! **********

回复评论 (1)

程序里包含的头文件不对?仅供参考。
点赞  2012-7-3 11:16
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复