Re: PICC編譯時將錯誤指向了頭文件了
|
||||
---|---|---|---|---|
版主
|
ZFLocation[0][0] 有沒有初始值的設定?
發表於: 2008/12/8 14:41
|
|||
|
Re: PICC編譯時將錯誤指向了頭文件了
|
||||
---|---|---|---|---|
版主
|
會不會是主程式李少了括號,分號等之類東西,造成 include 的錯誤。
不要懷疑,Hi-Tech PICC 所提供的 H 檔是沒有問題的。 probable missing '}' in previous block 的提示檢查一下主程式是否漏掉了 大括號?
發表於: 2008/12/6 11:45
|
|||
|
PICC編譯時將錯誤指向了頭文件了
|
||||
---|---|---|---|---|
新會員
|
我做了一個小顯示器程序,編譯時發現了一個很奇怪的問題,出錯信息總是指向頭文件,
它的意思是頭文件的 static volatile unsigned char TMR0 @ 0x01;行 少了半個大括號,當我將之一行注釋掉,它又会指向下一行,提示同样的错误,高手幫我看看吧 一般来说头文件是不会错的吧,可是我是在不知道怎么回事。 这是编译的出错信息: Clean: Deleting intermediary and output files. Clean: Deleted file "D:\Program Files\Microchip\SHIYONG\MAIN.cce". Clean: Done. Executing: "d:\program files\microchip\picc\BIN\PICC.EXE" -C -E"MAIN.cce" "MAIN.c" -O"MAIN.obj" -I"D:\Program Files\Microchip\PICC\include" -Zg9 -O -ASMLIST -ICD -Q -MPLAB -16F73 Error[000] D:\Program Files\Microchip\PICC\include\pic16f7x.h 16 : probable missing '}' in previous block Halting build on first failure as requested. BUILD FAILED: Sat Dec 06 09:34:07 2008 这是頭文件的一部分 /* * Header file for the Microchip * PIC 16F72 chip * PIC 16F73 chip * PIC 16F74 chip * PIC 16F76 chip * PIC 16F77 chip * Midrange Microcontroller */ #if defined(_16F74) || defined(_16F77) #define __PINS_40 #endif static volatile unsigned char TMR0 @ 0x01; static volatile unsigned char PCL @ 0x02; static volatile unsigned char STATUS @ 0x03; static unsigned char FSR @ 0x04; static volatile unsigned char PORTA @ 0x05; static volatile unsigned char PORTB @ 0x06; static volatile unsigned char PORTC @ 0x07; #ifdef __PINS_40
發表於: 2008/12/6 10:29
|
|||
|