0

Hi all,

I have an incompatible pointer type problem.I am using Dev-Cpp and I am trying to intergrate some functions to a large project in C (mpeg2 decoder) and I am stuck here trying many variations to solve it:

```
//global.h
void transpose_mat _ANSI_ARGS_((double *matA[], double *matB[], int N));
//declaration in the file where function is
void transpose_mat _ANSI_ARGS_((double *matA[],double *matB[], int N));
//function
void transpose_mat(matA, matB, N)
double *matA[];
double *matB[];
int N;
{
printf("\n TRAnSPOSE MATRIX = \n");
int i,j;
for (i=0;i<N;i++){
for (j=i;j<N;j++) {
matB[j][i] = matA[i][j];
matB[i][j] = matA[j][i];
}
}
for (i=0;i<N;i++){
for (j=0;j<N;j++) {
printf(" %d ",matB[i][j]);
}
printf("\n");
}
}
//where the above function is used:
void DCTcoeff_2x2(block)
short *block;
{
double D_2[4][4] = {0.5, 0.4619, 0, -0.1913,
0, 0.1913, 0.5, 0.4619,
0.5, -0.4619, 0, 0.1913,
0, 0.1913, -0.5, 0.4619};
double *D_3[4];
\\......
transpose_mat(D_2, D_3, 4); /*passing arg 1 from incompatible pointer type.
```

I would appreciate any help. Thank you for considering my question.