title: variable or field (function) declared void
body: <p>I am writing some basic matrix functions and am getting an error that I cannot figure out how to diagnose. </p>
  
  <p>I have a function in my .h file:</p>
  
  <pre><code>void matrixMultiplication (int arr1[][100], int arr2[][100], int a1row, int a2col, int targetArr[][100]);
  </code></pre>
  
  <p>In my .cpp file I have:</p>
  
  <pre><code>void matrixMultiplication (matrix1, matrix2, rowOfMatrix1, columnOfMatrix2, finalMatrix);   
  </code></pre>
  
  <p>which is defined as </p>
  
  <pre><code>void matrixMultiplication (int arr1[][100], int arr2[][100], int a1row, int a2col, int targetArr[][100]) {
      for (int a = 0; a &lt; a1row; a++) {
          for (int b = 0; b &lt; a2col; b++) {
              for (int c = 0; c &lt; a2col; c++) {
                  targetArr[a][b] += arr1[a][c]*arr2[c][b];
              }
          }
      }
  }
  </code></pre>
  
  <p>Everything is declared here:</p>
  
  <pre><code>//designates the sizes of both matrices
  int rowOfMatrix1 = 0;
  int columnOfMatrix1 = 0;
      // size of matrix 1 = rowOfMatrix1 x columnOfMatrix1
  int rowOfMatrix2 = 0;
  int columnOfMatrix2= 0;
      // size of matrix 2 = rowOfMatrix2 x columnOfMatrix2
  
  //arrays that hold the values of the integers in the matrices
  int matrix1 [100][100];
  int matrix2 [100][100];
  int finalMatrix [100][100];
  </code></pre>
  
  <p>However, when I run the program, I get the following error:</p>
  
  <pre><code>In function 'int main()' [Error] variable or field 'matrixMultiplication' declared void
  </code></pre>
  
  <p>I see that this question has been asked before but the answer had to do with strings, which have nothing to do with my program, and I cannot figure out how to extend that answer to this case. </p>