Go to Post Mmmmm, First Choice day. I can already taste the latency. - ttldomination [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 18-02-2006, 00:22
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Warning: No Function Prototype

MPLAB warns me that I have not prototyped my functions when I have...anyone else had this experience? Doesn't prevent my code from compiling or working, though.
__________________
  #2   Spotlight this post!  
Unread 18-02-2006, 00:25
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Warning: No Function Prototype

Quote:
Originally Posted by CronosPrime1
MPLAB warns me that I have not prototyped my functions when I have...anyone else had this experience? Doesn't prevent my code from compiling or working, though.
Where are you prototyping your functions? It shouldn't complain if you're putting the prototypes in user_routines.h.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 18-02-2006, 00:26
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Warning: No Function Prototype

I get the same thing... not sure what it means but it still lets me compile.... maybe i should be worried about it It happened after I put in the adc code.
__________________
TEAM 1706
2007 Judges Award, St. Louis (For our amazing ability to have bad luck)
2005 Rookie Inspiration Award, St. Louis
  #4   Spotlight this post!  
Unread 18-02-2006, 00:46
CronosPrime1 CronosPrime1 is offline
Registered User
FRC #0321
 
Join Date: Jan 2006
Location: Hyperspace
Posts: 53
CronosPrime1 is an unknown quantity at this point
Re: Warning: No Function Prototype

Quote:
Originally Posted by jgannon
Where are you prototyping your functions? It shouldn't complain if you're putting the prototypes in user_routines.h.
That's where I'm putting them.
__________________
  #5   Spotlight this post!  
Unread 18-02-2006, 01:01
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Warning: No Function Prototype

Make sure whatever C file you're working on actually includes the user_routines.h file - if you added more files to the project, you might have forgotten to include the headers. If that's not the case, check your spelling and argument lists - I always goof up on something silly like an extra underscore or something...
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
  #6   Spotlight this post!  
Unread 18-02-2006, 08:26
JJG13's Avatar
JJG13 JJG13 is offline
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
JJG13 has a spectacular aura aboutJJG13 has a spectacular aura aboutJJG13 has a spectacular aura about
Re: Warning: No Function Prototype

Also, if you prototyped a function with no parameters, you need to put a void for the paramter list e.g. void a_function(void); instead of void a_function();

That sometimes screws me up.
__________________
Behold the power of SPAM.
  #7   Spotlight this post!  
Unread 18-02-2006, 08:54
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: Warning: No Function Prototype

Try building everything from scratch (Ctrl + F10) and see if the problem disappears.
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383
  #8   Spotlight this post!  
Unread 18-02-2006, 09:48
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Warning: No Function Prototype

Not sure what Function you are trying to use but I got this message last night and it took me forever to figure out what it was.

I was using printf statement in user_routines_fast.c to see if auto-mode got to a section of my if statements or not. Come to find out they didn't #include <stdio.h> for that file.

Not sure if this is the same problem maybe. Worth a look that you are including the right file for the function you trying to use.
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
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
Presence of function causes auton to fail??? Kyveck Programming 13 16-02-2006 14:48
Loop time for OperatorControl function? Debug blows... Chris_Elston Programming 10 13-02-2006 14:42
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
RoboEmu2(code simulator)--now with C! rbayer Programming 23 17-02-2005 09:17
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 01:36.

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