I keep getting compiling error expected ‘;’, identifier or ‘(’ before ‘void’ void *runner(void *param) : <p>I am trying to compile this c program that uses threads to multiple matrices together. However I keep getting this error. </p>

<p>expected ‘;’, identifier or ‘(’ before ‘void’
 void *runner(void *param)</p>

<p>Below is the code that it is referring to.</p>

<pre><code>//The thread will begin control in this function
void *runner(void *param)
{
    struct v *data = param;
    int n, sum = 0;

    for(n = 0; n &lt; X; n++)
    {
            sum += a[data-&gt;i][n] * b[n][data-&gt;j];
    }

    c[data-&gt;i][data-&gt;j] = sum;

    pthread_exit(0);
}


void *runner(void *param);
</code></pre>
