|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Warning: No Function Prototype
Quote:
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Re: Warning: No Function Prototype
Quote:
|
|
#5
|
|||
|
|||
|
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...
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
|||||
|
|||||
|
Re: Warning: No Function Prototype
Try building everything from scratch (Ctrl + F10) and see if the problem disappears.
|
|
#8
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |