beginner trying to print out a recursive function in main
Hello, I am just practicing some recursion and I am having trouble with printing out a recursive function in main. Here is what I have:
Code:
// This function adds the squares 4, 5 = 4*4 + 5*5 recursiveley
int recursive_sumSquares(int m, int n)
{
if (m < n)
{
return m*m + recursive_SumSquares(m+1, n);
}
else
{
return m*m;
}
}
int main()
{
printf("%d", recursive_sumSquares(4, 7));
return 0;
}
I am getting an error that says undefined reference to 'recursive_SumSquares'