Go to Post My hammer is my therapist, my weapon against bent metal, unwilling bolts, and tall nails. - Morgan Gillespie [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 09-02-2007, 18:44
Xenosthebest Xenosthebest is offline
Registered User
FRC #0701
 
Join Date: Feb 2007
Location: Travis AFB
Posts: 14
Xenosthebest is an unknown quantity at this point
Re: Am i just not seeing it?

yes i have checked for all missing braces and semicolons. still nothing.
  #2   Spotlight this post!  
Unread 09-02-2007, 18:46
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: Am i just not seeing it?

Quote:
Originally Posted by Xenosthebest View Post
yes i have checked for all missing braces and semicolons. still nothing.
Can you attach the file?
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
  #3   Spotlight this post!  
Unread 09-02-2007, 20:28
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
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;
}
So do this:
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;
}
And see if the compiler still says its on the same line, or if it is now stopping on the upper or lower printf(). If so, then you know your error is on either side of the statement you were looking at, so check for the usual missing ; or }.

Good luck,
Robinson
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
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


All times are GMT -5. The time now is 04:45.

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