The error message does not help as you don't quote the relevant code (what's on line 14?)
But... float Cor[][] is not a valid for a parameter definition. Only one dimension of a multi-dimension array can be left undefined.
For example, both these function definitions are OK
1 2 3
|
void filtro_solo( float Sx[], float h[], float Cor[][2], int PontosSpec, int v )
void filtro_solo( float Sx[], float h[], float Cor[2][2], int PontosSpec, int v )
|
And for a 3 dimensional array
void filtro_solo( float Sx[], float h[], float Cor[][3][2], int PontosSpec, int v )
If you are passing an array, it is good practice to pass the dimensions, too.
And:
- yes, you need to turn function.c into function.o
- C++ would allow you to pass an Array object for your Cor parameter
- you might want to consider using a scientific library, if you are not expected to write your code from the ground up
Andy
P.S.
Three possible scientific libraries (I have not used them myself)
http://www.oonumerics.org/blitz/
http://arma.sourceforge.net/
http://www.gnu.org/software/gsl/
(there are others: a Physic forum might be a better place for advice about which is more suitabke for your needs?)