- Oct 12, 2003
- 87
- 0
- 0
Hey there, running my everyday compiler that comes standard from fedora1 and got a special kind of error.
usually they're nice to me and give me an idea with a line number but this is all I got this time...
/tmp/ccaIf30Q.o(.text+0x22a): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x33f): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x454): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x569): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x67e): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x793): more undefined references to `test_word(char*, char (*) [20], int, int, int, int)' follow
collect2: ld returned 1 exit status
the code will compile, and from the output i would guess it's a problem with the linker because it refers to a temporary *.o file
any ideas? source code is available.
usually they're nice to me and give me an idea with a line number but this is all I got this time...
/tmp/ccaIf30Q.o(.text+0x22a): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x33f): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x454): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x569): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x67e): In function `find_word(char*, char (*) [20])':
: undefined reference to `test_word(char*, char (*) [20], int, int, int, int)'
/tmp/ccaIf30Q.o(.text+0x793): more undefined references to `test_word(char*, char (*) [20], int, int, int, int)' follow
collect2: ld returned 1 exit status
the code will compile, and from the output i would guess it's a problem with the linker because it refers to a temporary *.o file
any ideas? source code is available.