|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Am i just not seeing it?
yes i have checked for all missing braces and semicolons. still nothing.
|
|
#2
|
||||
|
||||
|
Re: Am i just not seeing it?
Can you attach the file?
|
|
#3
|
|||
|
|||
|
Re: Am i just not seeing it?
Check the file the was compiled just before it, or more likely the last file #include'd in the the file where the error appears. Look for missing }s. The compiler is weird that way, although possibly technically right, as the faulty syntax isn't until something unexpected happens, like when you try and start one function definition inside another one.
Another way to isolate invisible errors inside a file is to put known-good code before and after the line with the error, eg. Code:
int someFunction(void) {
int i;
int j;
i = j /4; //this line is for some reason producing an error
return i;
}
Code:
int someFunction(void) {
int i;
int j;
printf("hello");
i = j /4; //this line is for some reason producing an error
printf("everyone");
return i;
}
Good luck, Robinson |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Just was not enough room | Rich Wong | Extra Discussion | 6 | 15-04-2005 18:58 |
| It's not just about the competition! | Franchesca | General Forum | 8 | 28-07-2004 13:31 |
| digital inputs not valid just after initialization? | WizardOfAz | Programming | 2 | 26-01-2004 13:21 |
| NO, I'm not just reviving a dead forum | Hubicki | Rules/Strategy | 6 | 14-07-2002 17:44 |