Hello, I've been having a problem calling functions in C. I've tried just about everything I could think about to make this work. If anybody can help give me an understanding of this I would really appreciate it.
the code:
#include <stdio.h>
main ()
{
int find_max(int, int);
int a, b, total;
a=32;
b=45;
total = find_max(a, b);
printf("the max of the two numbers are %d\n", total);
}
Pretty simple code for finding the maximum number within the program, but this is the compling error I get:
nicholas@nicholas-laptop:~/CProgramming$ gcc functions2.c -o functions2
/tmp/ccfYe8Qe.o: In function `main':
functions2.c.text+0x29): undefined reference to `find_max'
collect2: ld returned 1 exit status
Thanks for any help in advance.