undefined reference to

Dear ALL,

I am running my code, but it give me such error,
Could you please let me know what is problem.


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
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

regards, eg
See that function file_open? Where is it? Where is the code that actually does the work? The linker can't find it. Did you write it?
Thank you for the response.

I didn't write completely.
All thing is working well only that part.
Topic archived. No new replies allowed.