I'm trying to compile my program but am constantly getting the same error. on compiling the message is: "error: conflicting types for 'evaluate'"
"note: previous declaration of 'evaluate' was here" (with line pointer)
Both these lines say "double evaluate(....)" but it still won't work. I'll post the outline below. What am I missing?
Code:
/* Prototype function */
double evaluate(double x[], double fx[], long int MAX_ROWS, double a, double b, double eval);
int main(int argc, char* argv[])
{
...
...
...
}
double evaluate(double xs[], double fxs[], long int MAX_ROW, double aa, double bb, double *eval)
{
...
...
...
}