Go to Post "We've got more money than brains." - Travis Hoffman [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-01-2008, 22:16
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,709
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: PROGRAMMING PROBLEM HELP!

First, considering the length of your path to that file, you're running perilously close to the 64 character limit for the files path for the compiler. I'd consider moving the code from your desktop to a root directory.

Second, have you previously defined DeviceStatus somewhere?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2008, 22:22
Chris1228 Chris1228 is offline
Registered User
FRC #1228
 
Join Date: Sep 2007
Location: Rahway, NJ
Posts: 22
Chris1228 will become famous soon enough
Re: PROGRAMMING PROBLEM HELP!

ok so where should i move the code to?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2008, 22:36
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: PROGRAMMING PROBLEM HELP!

I keep mine in a folder directly on the C drive, and it seems to work.

Also, what are you doing with that last line? is that an arguement or an atempt at an array/vector, becuas eif so that may be it. I don't know about that in this enviroment, so it may be entirely legal.

Course, the file length may be your problem anyway, so try that before anything else.

Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2008, 22:37
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: PROGRAMMING PROBLEM HELP!

The path length limit would probably create a whole mess of error messages.

The C programming language is quite free form. You can put anything you want after a semicolon, including another command or comments. It is quite common to see these type of comments.

I cannot see any problems with your code. So that means add each line one at a time and see which one produces the error. You can facilitate that by commenting them out.

/Jason
Reply With Quote
  #5   Spotlight this post!  
Unread 07-01-2008, 22:42
Chris1228 Chris1228 is offline
Registered User
FRC #1228
 
Join Date: Sep 2007
Location: Rahway, NJ
Posts: 22
Chris1228 will become famous soon enough
Re: PROGRAMMING PROBLEM HELP!

Well i tried moving the code into a folder directly in the c drive and recieved the same error message. should i try putting the lines of code in one at a time to see which one produces the error?
Reply With Quote
  #6   Spotlight this post!  
Unread 07-01-2008, 22:43
Chris1228 Chris1228 is offline
Registered User
FRC #1228
 
Join Date: Sep 2007
Location: Rahway, NJ
Posts: 22
Chris1228 will become famous soon enough
Re: PROGRAMMING PROBLEM HELP!

And none of my programs will build is that a problem with mp lab?
Reply With Quote
  #7   Spotlight this post!  
Unread 08-01-2008, 10:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,837
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: PROGRAMMING PROBLEM HELP!

Since you've modified the default code it is probably something earlier that caused the error you're seeing.

Try compiling an original version of the default code and get that working first.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 08-01-2008, 11:12
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,794
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: PROGRAMMING PROBLEM HELP!

First off, a quick google search revealed your SVN repository, so you might want to protect that. That being said, i took a look over your source, and couldn't find anything that looked wrong.

One problem i've had in the past taht's really hard to find is line endings - Unix line endings are different from the DOS ones, and if you accidentally intermix them in a file, some compilers will start throwing fits. In the definition of PANEL_INPUT_RECORD in your header file, you have a variable of type panel_bitid, so it's a fairly safe bet that it's not the struct that's causing the problem.

Last edited by Jon Stratis : 08-01-2008 at 13:33.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-01-2008, 19:37
Chris1228 Chris1228 is offline
Registered User
FRC #1228
 
Join Date: Sep 2007
Location: Rahway, NJ
Posts: 22
Chris1228 will become famous soon enough
Re: PROGRAMMING PROBLEM HELP!

so what should i do? i dont have anyother variation of a default code
Reply With Quote
  #10   Spotlight this post!  
Unread 09-01-2008, 11:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,837
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: PROGRAMMING PROBLEM HELP!

Use the original released by IFI: http://www.ifirobotics.com/docs/frc-code-2007-8722.zip
The code snippet you posted earlier shows a line commented out, so it's been modified from the original.

Make sure the original compiles "as is" for you, then start adding your modifications, compiling and checking each modification as it's added. You'll catch where you've gone wrong.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-01-2008 at 12:00.
Reply With Quote
  #11   Spotlight this post!  
Unread 09-01-2008, 12:19
ubergeek5075's Avatar
ubergeek5075 ubergeek5075 is offline
Registered User
FRC #0910 (Foley Freeze)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2005
Location: Troy, MI
Posts: 14
ubergeek5075 is an unknown quantity at this point
Re: PROGRAMMING PROBLEM HELP!

Whenever we have a syntax error in our code, and our code on the line and after the line is grammatically correct, our next step is to make sure we aren't defining something previously defined.

Then we look at the code above it for syntax errors. For instance, if you have a line of code before that like this:

int new_variable

and forget the semicolon, then it will cause the error on the next line following. Same goes for braces and brackets, etc.

The only other thing i can think of is that the typedef is inside a function, which causes problems.
Reply With Quote
Reply


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
Easy C programming Problem fredliu168 FIRST Tech Challenge 6 19-11-2006 22:44
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
C programming problem... wasabi824 Programming 5 08-02-2004 01:04
multi-bank programming problem GregC Programming 3 14-02-2003 16:13
programming problem gthakore Programming 16 20-04-2002 12:21


All times are GMT -5. The time now is 10:34.

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