When I define an array like
double *first = (double *)malloc( N*N*sizeof( double ) );
There is not problem. But when I specify
static double *first = (double *)malloc( N*N*sizeof( double ) );
I get this error
error: initializer element is not constant
   10 |     static double *first = (double *)malloc( N*N*sizeof( double ) );
      |                            ^
How can I fix that?
 
    