Just a quick update. To be able to compile, i have to replace:
const int csrRowPtrA[m+1] = { 1, 2, 3, 4, 8};
const int csrColIndA[nnzA] = { 1, 2, 3, 1, 2, 3, 4};
const double csrValA[nnzA] = { 1.0, 2.0, 3.0, 0.1, 0.1, 0.1, 4.0};
const double b[m] = {1.0, 1.0, 1.0, 1.0};
with
int csrRowPtrA[m+1];
csrRowPtrA[0]=1;
csrRowPtrA[1]=2;
csrRowPtrA[2]=3;
csrRowPtrA[3]=4;
csrRowPtrA[4]=8;
etc…
Otherwise, i get this error message:
Error1: docex1.c:73:5: error: variable-sized object may not be initialized