I have just writed a example for practice the key word "extern" which is used in aspect of function.
I typed it in a file that named main.c and the codes are shown as in following.
undefined reference 'ret'
extern int ret(int);
int ret(int a)