Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Warning: No Function Prototype (http://www.chiefdelphi.com/forums/showthread.php?t=44225)

CronosPrime1 18-02-2006 00:22

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.

jgannon 18-02-2006 00:25

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.

Idaman323 18-02-2006 00:26

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.

CronosPrime1 18-02-2006 00:46

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.

steven114 18-02-2006 01:01

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...

JJG13 18-02-2006 08:26

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.

Manoel 18-02-2006 08:54

Re: Warning: No Function Prototype
 
Try building everything from scratch (Ctrl + F10) and see if the problem disappears.

Gamer930 18-02-2006 09:48

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.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi