OCCRA
Go to Post Yeah, you build robots, so what. But you also build students, and that's what it's about! - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-12-2006, 03:16 AM
ocean_blue74 ocean_blue74 is offline
Junior Member
no team
 
Join Date: Aug 2006
Location: SINGAPORE
Posts: 1
ocean_blue74 is an unknown quantity at this point
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   Spotlight this post!  
Unread 08-12-2006, 06:33 AM
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: MPLAB...ERROR..Pls help..Thank You

Try using MPLAP 7.2 or 7.22 i dont think 7.4 is supported...
  #3   Spotlight this post!  
Unread 08-12-2006, 10:45 AM
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: Hauppauge, Long Island, NY
Posts: 9,762
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
We are what we repeatedly do. Excellence, then, is not an act, but a habit. -Aristotle

Last edited by Mark McLeod : 08-12-2006 at 10:47 AM.
  #4   Spotlight this post!  
Unread 08-12-2006, 11:50 AM
Ken Leedle Ken Leedle is offline
College Student
FRC #0706 (CyberHawks)
Team Role: Alumni
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Wisconsin
Posts: 37
Ken Leedle will become famous soon enoughKen Leedle will become famous soon enough
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLab build error Derek t Programming 7 01-17-2005 09:33 AM
MPLAB build error cabbagekid2 Programming 7 01-12-2005 01:36 PM
MPLAB IDE 6.60 Error mchan1111 Programming 8 11-08-2004 08:17 PM
MPlab error ryan_f Programming 9 05-24-2004 07:30 AM
Wierd gyro code problems...pls help Salik Syed Programming 4 03-14-2004 01:29 AM


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi