MPLAB...ERROR..Pls help..Thank You


#1

I have just installed MPLAB IDE V7.40 with a MPLAB C18 Compiler,

but when I build all. there are error messages appeared.

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: “C:\MCC18\bin\mcc18.exe” -p=18F4520 “Test.c” -fo=“Test.o” -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\MCC18\My Project\Test.c:1:Error [1027] unable to locate ‘p18f4520.h’
C:\MCC18\My Project\Test.c:2:Error [1027] unable to locate ‘delays.h’
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 60
Halting build on first failure as requested.
BUILD FAILED: Sat Aug 12 15:07:03 2006

Thank You.

I have make sure that Project>Buile Options>Project there is C:\MCC18\lib in the library path. But I do not know why the MPLAB cannot find the header.


#2

Try using MPLAP 7.2 or 7.22 i dont think 7.4 is supported…


#3

The headers come from Project>Build Options>Project then the Include file path should be c:\mcc18\h

He or she is not using FIRST equipment, so don’t have to worry about the versions.


#4

Make sure you include the header files in the header section of yourproject.mcp
If that doesn’t work, try putting the header files in the same folder as your project.
Usually, I just need to have #include “p18f4520.h” at the beginning of the main.c file and it works just fine. I have used the the 18F4520 on one project without any difficulty using MPLAB 7.30 and C18 v2.40.
I would need more information about what you are trying to do to suggest anything else.