I have the function with following signature:

void svdcmp(double **a, int m, int n, double w[ ], double **v)

and variable "b" of the type

double b[2][2];

When i am calling the above sub-function with command

svdcmp(b, 2, 2, NULL, NULL);

Dev C gives me the following warning:

[warning] passing arg1 of 'svdcmp' from incompatible pointer type.

Please help me to remove this warning.
Thanks in advance :) ....

typecast it

svdcmp((double**)b, 2, 2, NULL, NULL);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.