Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   fickle autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=42789)

NASAbound1636 27-01-2006 18:41

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?

Eldarion 27-01-2006 19:05

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.

LightWaves1636 29-01-2006 04:33

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.

NASAbound1636 30-01-2006 15:43

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

Jared Russell 30-01-2006 16:12

Re: fickle autonomous
 
Do all your source files end in .c?

IE no .cpp, .C, .cxx, .cc or anything else?

NASAbound1636 30-01-2006 17:16

Re: fickle autonomous
 
yes it's titled static output.c

NASAbound1636 30-01-2006 18:02

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

CronosPrime1 30-01-2006 18:28

Re: fickle autonomous
 
Well, it seems there is an error at line 55. Again, check for missing semicolons or brackets.

NASAbound1636 30-01-2006 18:34

Re: fickle autonomous
 
the thing is, there is NOTHING on line 55 or line 54 or line 56!

Dave Scheck 30-01-2006 18:37

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.

NASAbound1636 30-01-2006 18:38

Re: fickle autonomous
 
I shall check.

NASAbound1636 30-01-2006 18:42

Re: fickle autonomous
 
all brackets, parenthesis, and semicolons are accounted for. any other possibilities?

Astronouth7303 30-01-2006 19:40

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.

Kevin Watson 30-01-2006 20:39

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

Jared Russell 30-01-2006 23:13

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.


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

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