View unanswered posts | View active topics It is currently Fri Oct 24, 2014 7:43 am






Reply to topic  [ 3 posts ] 
program issue 
Author Message
Rookie

Joined: Wed Feb 06, 2013 7:40 pm
Posts: 3
Post program issue
I am trying to write a competition program by hand as a challenge to myself but i keep getting compling errors. They are as folows
13.042**Error**:No body defined for procedure prototype 'pre_auton'
13.061**Error**:No body declared for procedure 'pre_auton'. Global subroutine assumed.
I have tried taking the code needed for this area from a competition template and it still returns these errors.


Attachments:
File comment: this is the program
test_hand_comp.c [2.51 KiB]
Downloaded 253 times
Wed Feb 06, 2013 7:49 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 593
Post Re: program issue
Spelling matters! In this particular case, you have (in your code):

Code:
void pre_aton()


Note, though, that it should be:

Code:
void pre_auton()


The misspelling of 'auton' was what caused the error; ROBOTC assumed that you defined a function called 'pre_aton' (which is valid) but the template calls for pre_auton, it technically doesn't exist, hence the error.

Correcting the spelling should fix the issue for you.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Wed Feb 06, 2013 11:09 pm
Profile
Rookie

Joined: Wed Feb 06, 2013 7:40 pm
Posts: 3
Post Re: program issue
Thank you. I never even noticed that. I will sub that in.


Thu Feb 07, 2013 7:49 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.