I am a fairly new programer and writing a simple program that reads in some sales information from a txt file. I am trying to call my buildSalesArray function but i get a msg i have not ever seen after compiling. Can anyone explain what this means
Undefined symbols:
"buildSalesArray(double)", referenced from:
_main in ccfPTJJN.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
void buildSalesArray(double); // PARAMETER TYPE MISMATCH between this prototype
int main()
{
double salesArray[NUM_MONTHS+1] = { 0 };
buildSalesArray(salesArray[NUM_MONTHS+1]);
return 0;
}
void buildSalesArray(double salesArray[]) //AND this line here