Go to Post I think this is the forest that ChiefDelphi often misses as we're picking the branches off every tree. - Libby K [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 27-01-2006, 18:41
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
fickle autonomous

In autonomous mode i have entered the program and all errors are fixed but one, a syntax error. when i call it up it is 2 lines after all code is finished, nothing is there, how do I fix this phantom error?
  #2   Spotlight this post!  
Unread 27-01-2006, 19:05
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: fickle autonomous

Quote:
Originally Posted by NASAbound1636
In autonomous mode i have entered the program and all errors are fixed but one, a syntax error. when i call it up it is 2 lines after all code is finished, nothing is there, how do I fix this phantom error?
It is most likely a missing end bracket, or less likely, you forgot your semicolon on the last statement.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #3   Spotlight this post!  
Unread 29-01-2006, 04:33
LightWaves1636's Avatar
LightWaves1636 LightWaves1636 is offline
is all over it.
AKA: Sarah Le
no team
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 603
LightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to beholdLightWaves1636 is a splendid one to behold
Send a message via AIM to LightWaves1636 Send a message via Yahoo to LightWaves1636
Re: fickle autonomous

Quote:
Originally Posted by Eldarion
It is most likely a missing end bracket, or less likely, you forgot your semicolon on the last statement.
hehe and you were right, again if LaBar or Jake is avalible, try them first to make things faster because programming is easier to troubleshoot in real life and I believe I have enough knowledge to trouble shoot programming also.
  #4   Spotlight this post!  
Unread 30-01-2006, 15:43
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

To give an Idea of the problem i'm having, when i compile it the following message appears: (note: it is typed exactly as seen after this line)

Skipping file. There is no tool to process the file with the given suffix.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jan 30 13:38:58:2006


if you can translate this and fix the error hypothetically plz let me know how!
-me
  #5   Spotlight this post!  
Unread 30-01-2006, 16:12
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: fickle autonomous

Do all your source files end in .c?

IE no .cpp, .C, .cxx, .cc or anything else?
  #6   Spotlight this post!  
Unread 30-01-2006, 17:16
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

yes it's titled static output.c
  #7   Spotlight this post!  
Unread 30-01-2006, 18:02
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

Quote:
Originally Posted by NASAbound1636
To give an Idea of the problem i'm having, when i compile it the following message appears: (note: it is typed exactly as seen after this line)

Skipping file. There is no tool to process the file with the given suffix.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jan 30 13:38:58:2006


if you can translate this and fix the error hypothetically plz let me know how!
-me
Ignore this, I fixed That problem, but now a new one pops up and it says this:

Make: The target "C:\Documents and Settings\jeffco\Desktop\autonomous.c\static output.o" is out of date.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "static output.c" -fo="static output.o" /i"C:\Documents and Settings\jeffco\Desktop\012406c" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\jeffco\Desktop\autonomous.c\static output.c:55:Error: syntax error
Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jan 30 15:55:19 2006
__________________
there are 3 kinds of people in the world. those who can count, and those who can't.
Did you know that 4/3 of all people have trouble with fractions?
there are 10 kinds of people in the world, those who understand binary, and those who don't.
If you have 1 of these and you will let me use it then pm it to me
  #8   Spotlight this post!  
Unread 30-01-2006, 18:28
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Re: fickle autonomous

Well, it seems there is an error at line 55. Again, check for missing semicolons or brackets.
__________________
  #9   Spotlight this post!  
Unread 30-01-2006, 18:34
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

the thing is, there is NOTHING on line 55 or line 54 or line 56!
__________________
there are 3 kinds of people in the world. those who can count, and those who can't.
Did you know that 4/3 of all people have trouble with fractions?
there are 10 kinds of people in the world, those who understand binary, and those who don't.
If you have 1 of these and you will let me use it then pm it to me
  #10   Spotlight this post!  
Unread 30-01-2006, 18:37
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: fickle autonomous

Quote:
Originally Posted by NASAbound1636
the thing is, there is NOTHING on line 55 or line 54 or line 56!
What about 53, 52, or 51? A syntax error that shows up on a line that doesn't have anything is usually a missing bracket, parenthesis, or semicolon. Your problem isn't actually at line 55, but the compiler thinks it is because your syntax from a previous line is invalid.
  #11   Spotlight this post!  
Unread 30-01-2006, 18:38
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

I shall check.
__________________
there are 3 kinds of people in the world. those who can count, and those who can't.
Did you know that 4/3 of all people have trouble with fractions?
there are 10 kinds of people in the world, those who understand binary, and those who don't.
If you have 1 of these and you will let me use it then pm it to me
  #12   Spotlight this post!  
Unread 30-01-2006, 18:42
NASAbound1636 NASAbound1636 is offline
clueless???
AKA: joe
FRC #1636 (Reds Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: colorado
Posts: 20
NASAbound1636 is an unknown quantity at this point
Re: fickle autonomous

all brackets, parenthesis, and semicolons are accounted for. any other possibilities?
__________________
there are 3 kinds of people in the world. those who can count, and those who can't.
Did you know that 4/3 of all people have trouble with fractions?
there are 10 kinds of people in the world, those who understand binary, and those who don't.
If you have 1 of these and you will let me use it then pm it to me
  #13   Spotlight this post!  
Unread 30-01-2006, 19:40
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: fickle autonomous

The phase of the moon, the tides, the compiler's horoscope...

There are times when the compiler will just spit at you and throw semingly random syntax errors.

Open the file in notepad, and check to make sure there's nothing there.

Look for syntax errors at the previous code line.

Contact someone and have them check.
  #14   Spotlight this post!  
Unread 30-01-2006, 20:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: fickle autonomous

Quote:
Originally Posted by NASAbound1636
Ignore this, I fixed That problem, but now a new one pops up and it says this:

Make: The target "C:\Documents and Settings\jeffco\Desktop\autonomous.c\static output.o" is out of date.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "static output.c" -fo="static output.o" /i"C:\Documents and Settings\jeffco\Desktop\012406c" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\jeffco\Desktop\autonomous.c\static output.c:55:Error: syntax error
Skipping link step. Not all sources built successfully.
BUILD FAILED: Mon Jan 30 15:55:19 2006
If I remember correctly, the tools choke if your path or file name have an embedded space. Move your project off your desktop to something like c:\code and rename your source file(s) static_output.c, etc.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #15   Spotlight this post!  
Unread 30-01-2006, 23:13
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,082
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: fickle autonomous

You probably did this, but go to Project->Clean then try building.

I also don't know how tolerant MPLab is of alternate line break settings - did you by chance write your code on Linux or a Mac?

Lastly, try selecting lines 54-56 together and deleting them. Maybe there's a hidden character somewhere (maybe way off the right margin?).

EDIT: oh, and make sure any strings you use have beginning and ending quotes - MPLab has given me errors in weird places when I've forgotten to close a string.

Last edited by Jared Russell : 30-01-2006 at 23:15.
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
A Warning to Human Players During Autonomous The Lucas General Forum 21 07-04-2005 02:29
Setting Autonomous Settings from OI Tom Saxton Programming 15 27-03-2005 11:45
Despite what IFI says, you can configure autonomous from OI... TedP Programming 19 31-03-2004 10:09
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 01:55.

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