Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   MPLAB...ERROR..Pls help..Thank You (http://www.chiefdelphi.com/forums/showthread.php?t=48597)

ocean_blue74 12-08-2006 03:16

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.

bear24rw 12-08-2006 06:33

Re: MPLAB...ERROR..Pls help..Thank You
 
Try using MPLAP 7.2 or 7.22 i dont think 7.4 is supported...

Mark McLeod 12-08-2006 10:45

Re: MPLAB...ERROR..Pls help..Thank You
 
Quote:

Originally Posted by ocean_blue74
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.

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

Quote:

Originally Posted by bear24rw
Try using MPLAP 7.2 or 7.22 i dont think 7.4 is supported...

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

Ken Leedle 12-08-2006 11:50

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.


All times are GMT -5. The time now is 03:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi