I am running my code, but it give me such error,
Could you please let me know what is problem.
Code:
int file_open(char *filename);
int main(int argc,char **argv) {
if (argc<2) {exit(0);}
int numb;
char *fn;
numb = file_open(fn); //error comes in this line
}
****************************************************************
error:
g++ dd.C
/tmp/ccKOWipj.o: In function `main':
dd.C:(.text+0x23): undefined reference to `file_open(char*)'
collect2: ld returned 1 exit status