Go to Post Ok, so you are going to use a robot to hold all of those rivets together? - gblake [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
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 02-02-2008, 22:24
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Help !!!

Hi,

When I compile today, I get this problem

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F8722 "autonomous.c" -fo="autonomous.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate 'p18cxxx.h'
C:\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate 'stdio.h'
MPLAB C18 v3.15 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 60
Halting build on first failure as requested.

How can I solve it ? I am using MPLAB v8.00
  #2   Spotlight this post!  
Unread 02-02-2008, 22:28
zkaratekid's Avatar
zkaratekid zkaratekid is offline
Registered User
FRC #1138
Team Role: Human Player
 
Join Date: Feb 2006
Rookie Year: 2005
Location: West Hills CA
Posts: 19
zkaratekid will become famous soon enough
Re: Help !!!

hey our programmer said that you need to reinstall the upgrade for mplab 8 and make sure you have compiler v. 3
__________________
2009 Los Angeles Regional - Chairman's Award
2009 Granite State Regional - Engineering Inspiration Award
2007 Los Angeles Regional - Engineering Inspiration Award
2006 Southern California Regional - Regional Champions
  #3   Spotlight this post!  
Unread 02-02-2008, 22:30
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

gotta fix your project's search paths.
find the project settings in the project menu, and change the paths.
include -> mcc18/h
library -> mcc18/lib
linker -> mcc18/lkr
  #4   Spotlight this post!  
Unread 02-02-2008, 22:50
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Re: Help !!!

Quote:
Originally Posted by tdlrali View Post
gotta fix your project's search paths.
find the project settings in the project menu, and change the paths.
include -> mcc18/h
library -> mcc18/lib
linker -> mcc18/lkr
Can you say more detail ?

I have the v.3 compiler
  #5   Spotlight this post!  
Unread 02-02-2008, 22:54
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

Open MPLab, open the project, go to Project -> Build Options -> Project
Then on the General tab (or something like Paths in v8), set the links like this:
Linker -> mcc18/lkr
Library -> mcc18/lib
Include -> mcc18/h

where mcc18 is the path to your c18 installation
  #6   Spotlight this post!  
Unread 02-02-2008, 23:01
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Re: Help !!!

It seems that there is no such tab like you said
  #7   Spotlight this post!  
Unread 02-02-2008, 23:13
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

Well, look around and use common sense, there is one with paths, i know that for sure.
  #8   Spotlight this post!  
Unread 02-02-2008, 23:16
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Re: Help !!!

I have done like you said. Now there is another problem


Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F8722 /i"C:\MCC18\h" "autonomous.c" -fo="autonomous.o" -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.15 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 60
C:\ifi_frc_simple_30\autonomous.c:242:Error: syntax error
Halting build on first failure as requested.
  #9   Spotlight this post!  
Unread 02-02-2008, 23:21
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

Well, check line 242 in the autonomous.c file, there's a syntax error on that line.
  #10   Spotlight this post!  
Unread 02-02-2008, 23:23
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Re: Help !!!

void Autonomous_Spin(void)

This is the line. Is there any error ?
  #11   Spotlight this post!  
Unread 02-02-2008, 23:32
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Help !!!

Check the lines above that for something like a missing brace or semicolon.

Since the C18 compiler gives ever-so-helpful error messages, I can't say for sure, but I'm guessing the compiler was expecting a semicolon at the end of a statement or a closing curly-brace, but instead it found "void Autonomous_Spin(void)".

The syntax error occurred on line 242, but the problem that caused it isn't necessarily on that line. The actual problem is often on the line above the one the compiler says it is.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

  #12   Spotlight this post!  
Unread 02-02-2008, 23:33
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

Without the surrounding code, it's hard to tell. Based on that file name, I'm assuming you're using Kevin's v3 code, correct? Did you modify that file?
  #13   Spotlight this post!  
Unread 02-02-2008, 23:35
sonnguyen sonnguyen is offline
Registered User
FRC #1405
 
Join Date: Feb 2008
Location: Rochester
Posts: 17
sonnguyen is an unknown quantity at this point
Re: Help !!!

yeah i did modify the file.

I don't have any code surronding that one

It said it's version is v.0.1
  #14   Spotlight this post!  
Unread 02-02-2008, 23:41
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Help !!!

Well, without the whole file, it's hard to tell what's wrong, but do you have semicolons and closing brackets everywhere? (Those would result in something more like "expected xx instead of yy" errors, though...)
  #15   Spotlight this post!  
Unread 02-02-2008, 23:44
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Help !!!

Check the last few lines that have code on them that are before where you get the error.

Better yet, show those lines.

I'm pretty sure C18 doesn't give "expected ..." errors for missing/extra semicolons and braces.
It just says "syntax error".

The only time it seems to give and "expected" error is when you use . instead of -> or the other way around.
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award


Last edited by Chaos in a Can : 02-02-2008 at 23:47. Reason: C18 is very user friendly!
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
Grab Frame - Help Help Help... nmihailidis Programming 2 04-03-2007 14:44
section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) naor52 Programming 14 24-02-2007 01:19
Help: How do we get a teacher to help? (was: Help) ChaosAlchimey General Forum 13 21-01-2007 11:57


All times are GMT -5. The time now is 19:09.

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


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