我用PICC8.05编译,提示出错: Executing: "C:HT-PICBINPICC.EXE" -C -E"Battery Check.cce" "Battery Check.c" -O"Battery Check.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageBattery Check.c 104 : unused variable definition: status_a (from line 72) Warning[000] E:microchipC LanguageBattery Check.c 104 : unused variable definition: status_b (from line 82) Executing: "C:HT-PICBINPICC.EXE" -C -E"Interrupt.cce" "Interrupt.c" -O"Interrupt.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageInterrupt.c 100 : unused variable definition: fault_battery (from line 50) Warning[000] E:microchipC LanguageInterrupt.c 100 : unused variable definition: status_a (from line 72) Warning[000] E:microchipC LanguageInterrupt.c 35 : undefined shift (17 bits) Executing: "C:HT-PICBINPICC.EXE" -C -E"Main.cce" "Main.c" -O"Main.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: count_ad (from line 13) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_max (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_min (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_resutl_buf (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_result_temp (from line 13) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: status_a (from line 72) Executing: "C:HT-PICBINPICC.EXE" -C -E"Status_Check.cce" "Status_Check.c" -O"Status_Check.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageStatus_Check.c 38 : unused variable definition: fault_battery (from line 50) Executing: "C:HT-PICBINPICC.EXE" -C -E"Timer 0.cce" "Timer 0.c" -O"Timer 0.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageTimer 0.c 9 : unused variable definition: fault_battery (from line 50) Warning[000] E:microchipC LanguageTimer 0.c 9 : unused variable definition: status_a (from line 72) Warning[000] E:microchipC LanguageTimer 0.c 9 : unused variable definition: status_b (from line 82) Executing: "C:HT-PICBINPICC.EXE" -C -E"UART.cce" "UART.c" -O"UART.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageUART.c 10 : unused variable definition: fault_battery (from line 50) Warning[000] E:microchipC LanguageUART.c 10 : unused variable definition: status_a (from line 72) Warning[000] E:microchipC LanguageUART.c 10 : unused variable definition: status_b (from line 82) Executing: "C:HT-PICBINPICC.EXE" -C -E"Work.cce" "Work.c" -O"Work.obj" -I"C:HT-PICinclude" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Warning[000] E:microchipC LanguageWork.c 81 : unused variable definition: status_a (from line 72) Warning[000] E:microchipC LanguageWork.c 81 : unused variable definition: status_b (from line 82) Executing: "C:HT-PICBINPICC.EXE" -E"1.lde" "E:microchipC LanguageBattery Check.obj" "E:microchipC LanguageInterrupt.obj" "E:microchipC LanguageMain.obj" "E:microchipC LanguageStatus_Check.obj" "E:microchipC LanguageTimer 0.obj" "E:microchipC LanguageUART.obj" "E:microchipC LanguageWork.obj" -M"1.map" -O"1.cof" -O"1.hex" -Q -MPLAB -16F73 Error[000] E:microchipC LanguageInterrupt.obj 28 : multiply defined symbol: _ubat (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageInterrupt.obj 28 : multiply defined symbol: _n_fault (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageInterrupt.obj 28 : multiply defined symbol: _datrx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageInterrupt.obj 28 : multiply defined symbol: _dattx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _time_relay (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _i_rx (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _i_tx (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _ubat (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _time_hour (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _n_fault (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _datrx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _dattx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 20 : multiply defined symbol: _n_bat (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageMain.obj 21 : multiply defined symbol: _count_100ms (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageMain.obj 21 : multiply defined symbol: _count_500ms (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageStatus_Check.obj 18 : multiply defined symbol: _datrx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageStatus_Check.obj 18 : multiply defined symbol: _dattx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageTimer 0.obj 14 : multiply defined symbol: _time_relay (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageTimer 0.obj 14 : multiply defined symbol: _time_hour (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageTimer 0.obj 14 : multiply defined symbol: _count_100ms (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageTimer 0.obj 14 : multiply defined symbol: _count_500ms (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageUART.obj 16 : multiply defined symbol: _i_init (E:microchipC LanguageMain.obj) Error[000] E:microchipC LanguageUART.obj 16 : multiply defined symbol: _i_rx (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageUART.obj 16 : multiply defined symbol: _i_tx (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageUART.obj 16 : multiply defined symbol: _datrx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageUART.obj 16 : multiply defined symbol: _dattx (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageWork.obj 18 : multiply defined symbol: _time_relay (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageWork.obj 18 : multiply defined symbol: _mod_work (E:microchipC LanguageMain.obj) Error[000] E:microchipC LanguageWork.obj 18 : multiply defined symbol: _ubat (E:microchipC LanguageBattery Check.obj) Error[000] E:microchipC LanguageWork.obj 18 : multiply defined symbol: _time_hour (E:microchipC LanguageInterrupt.obj) Error[000] E:microchipC LanguageWork.obj 18 : Too many errors BUILD FAILED: Tue Apr 10 15:24:23 2007 我已经在程序中定义了所有的变量,为什么会提示重复定义呢? |