Can anyone tell me what to do to solve this error?

#include <iostream>
#define MATRIX_DIMENSION 4
int  WSACleanup (void);
int main(int nArgs, char** pArgs)
{
  int nDim = MATRIX_DIMENSION;
  double fMatr[MATRIX_DIMENSION*MATRIX_DIMENSION] =
  {
  1.0,  2.0, -1.0, -2.0,
  1.0,  3.0, -1.0, -2.0,
  2.0,  1.0,  1.0,  1.0,
  3.0,  1.0,  2.0,  1.0,
  };
  double fVec[MATRIX_DIMENSION] = {-6.0, -4.0, 11.0, 15.0};
  
  double fSolution[MATRIX_DIMENSION];
  int res;
  int i;
  int LinearEquationsSolving;

  res =  LinearEquationsSolving(&nDim, &fMatr, &fVec, &fSolution); // !!! Error C2064

  if(res)
  {
    printf("No solution!\n");
    return 1;
  }
  else
  {
    printf("Solution:\n");
    
  }

  
  return 0;
}

Just a wild guess, but it might have something to do with you calling a function (LinearEquationsSolving) which does not exist?

Just a wild guess, but it might have something to do with you calling a function (LinearEquationsSolving) which does not exist?

I created a void function and it gives me the same error

new code please.

Thanks but finaly I succeded to solve it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.