|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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?
|
|
#3
|
|||
|
|||
|
Re: PROGRAMMING PROBLEM HELP!
And none of my programs will build is that a problem with mp lab?
|
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
Re: PROGRAMMING PROBLEM HELP!
so what should i do? i dont have anyother variation of a default code
|
|
#7
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 09-01-2008 at 12:00. |
|
#8
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |