0

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;
}

Edited by Nick Evan: Added code-tags

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by eduard77
0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.