เขียนโปรแกรมมผ่าน MPLAB v8.70 คอมไพล์ไม่ผ่าน (CCS C)

Started by werapon, February 15, 2013, 10:21:34 AM

Previous topic - Next topic

werapon

Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\PIC\MPLAB\Exmple.ESYM".
Clean Warning: File "D:\PIC\MPLAB\Exmple.o" doesn't exist.
Clean: Deleted file "D:\PIC\MPLAB\Exmple.ERR".
Clean: Done.
Executing: "C:\Program files\Picc\CCSC.exe" +FM "Exmple.c" #__DEBUG=1 +ICD +DF +LN +T +A +M +Z +Y=9 +EA  #__16F886=TRUE
*** Error 18 "Exmple.c" Line 1(9,19): File can not be opened
    Not in project "D:\PIC\MPLAB\16F886.h"
*** Error 111 "Exmple.c" Line 3(7,33): Unknown keyword in #FUSES   "NOPROTECT"
*** Error 99 "Exmple.c" Line 6(5,19): Option invalid   Not a valid port: A
*** Error 128 "Exmple.c" Line 8(1,15): A #DEVICE required before this line
*** "Exmple.c" Line 10: Error #12: Undefined identifier  -- set_tris_a
*** "Exmple.c" Line 11: Error #12: Undefined identifier  -- setup_adc
*** "Exmple.c" Line 13: Error #12: Undefined identifier   true
*** "Exmple.c" Line 15: Error #12: Undefined identifier  -- output_a
*** "Exmple.c" Line 18: Error #12: Undefined identifier  -- output_a
      9 Errors,  0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Fri Feb 15 10:16:58 2013


AppleIIe

*** Error 18 "Exmple.c" Line 1(9,19): File can not be opened
    Not in project "D:\PIC\MPLAB\16F886.h"

ตรงนี้มันก็บอกท่านแล้วละ หาดูครับ
"Stay Hungry, Stay Foolish"
จงกระหาย และ ทำตัวโง่ให้ตลอดเวลา
"Innovation distinguishes between a leader and a follower."
นวัตกรรมแยกผู้นำกับผู้ตามออกจากกัน

คนฉลาด...ต้องโง่เป็น คนโง่ไม่เป็น...จะไม่มีทางฉลาด

amaloma

ดูโคดหน่อยจิ คร่าวๆมันน่าจะหา .h ไม่เจอ


werapon

*** Error 18 "Exmple.c" Line 1(9,19): File can not be opened
    Not in project "D:\PIC\MPLAB\16F886.h"

ตรงนี้มันก็บอกท่านแล้วละ หาดูครับ

ขอบคุณครับ AppleIIe  ผมสามารถแก้ไขได้แล้วผมไม่ได้ แอดไฟล์ .h เข้าไปในโปรเจค