I'm working on a program for class, and I'm getting an error message that I don't understand at all. My TA doesn't understand it either.
Here's the message:
Undefined symbols for architecture x86_64:
"readFile(char, int&)", referenced from:
_main in ccIjftP3.o
"computeAverage(int*, int, double)", referenced from:
_main in ccIjftP3.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Your prototypes and your function bodies don't match.
Look carefully
1 2 3 4 5 6 7
int *readFile (char, int&);
double computeAverage (int*, int, double);
// vs
int *readFile (char fileName[], int &SIZE)
double computeAverage (int *intptr, int SIZE, double &sum)