View Single Post
  #2   Spotlight this post!  
Unread 21-01-2006, 14:28
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Re: "call of function without prototype"

It means you need to either define your function or else prototype it.

In a header file you need to type in something like this...


int funtion_name(int parameter_names);

and then in a file you need to actually define the function...

int function_name(int parameter_name)
{
your code goes here;
}


Make sure you have both parts and also make sure you have the header file included in whatever .c file that you are calling the function from.

incase you dont knoe calling = executing your function.

Hope this helps.
__________________