Undefined reference to function

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);
}
That's not quite how functions work.

http://www.cplusplus.com/doc/tutorial/functions/

How to send an array specifically to a function - https://www.youtube.com/watch?v=VnZbghMhfOY
Check your spelling?

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.
Small form of program or not, it's completely wrong.
 
void fuction(int a,int *b) // Function is misspelled, and empty. 


void function(int ,int * ); Why is this inside of main, what purpose does it have?
Topic archived. No new replies allowed.