hi,i try to send an array to a function but i got some error messages like
222.cpp:(.text+0x2b): undefined reference to `function(int, int*)'
C:\Users\***\Desktop\collect2.exe [Error] ld returned 1 exit status
what can i do?
1 2 3 4 5 6 7 8 9 10 11
void fuction(int a,int *b){
}
int main()
{
void function(int ,int * );
int x=20;
int array[20];
function(x,array);
}
This is not the exact question. This is a very simple form of my program.
It returns an error. I have a long code and it returns same message as this one.
I think this line " void fuction(int a,int *b) " has a problem but I can't figure it out.