|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MPLAB...ERROR..Pls help..Thank You
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
|
||||
|
||||
|
Re: MPLAB...ERROR..Pls help..Thank You
Try using MPLAP 7.2 or 7.22 i dont think 7.4 is supported...
|
|
#3
|
|||||
|
|||||
|
Re: MPLAB...ERROR..Pls help..Thank You
Quote:
Quote:
Last edited by Mark McLeod : 12-08-2006 at 10:47. |
|
#4
|
|||
|
|||
|
Re: MPLAB...ERROR..Pls help..Thank You
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MPLab build error | Derek t | Programming | 7 | 17-01-2005 09:33 |
| MPLAB build error | cabbagekid2 | Programming | 7 | 12-01-2005 13:36 |
| MPLAB IDE 6.60 Error | mchan1111 | Programming | 8 | 08-11-2004 20:17 |
| MPlab error | ryan_f | Programming | 9 | 24-05-2004 07:30 |
| Wierd gyro code problems...pls help | Salik Syed | Programming | 4 | 14-03-2004 01:29 |