Compiler generates this error only & only if it does not recognize the datatype that you have mentioned in the arguments to your function I assume.
For example -->
int example(int *x,int *y) is correct.
int example(integer *x, int *y) will generate the above error because the compiler does not recognize the datatype of argument 1, i.e. integer.
If you are using some sort of typedef, just verify if you have included the respective header file in which the datatype/structure is defined. That should fix this error.