• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

nvm solved

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.
 
Originally posted by: mpitts
Maybe you should ask in the Operating Systems forum.
Except it isn't an OS question.

Why don't you post source code?

Apparently the symbol test_word isn't being resolved.
 
Originally posted by: manly
Originally posted by: mpitts
Maybe you should ask in the Operating Systems forum.
Except it isn't an OS question.

Why don't you post source code?

Apparently the symbol test_word isn't being resolved.

OK then, the Programming forum.

It certainly doesn't belong in Off Topic.
 
Originally posted by: Foxman2000
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.

It's a problem because the function test_word isn't in the file before you link all the objects together to form the program.
 
I eventually figured out the problem, was a simple and stupid declarator in the function prototype that was wrong, ty all though
and btw, i posted here bc at least 10 people read here a minute, but others are really slow to update, and considering volume and intelligence here, i might get a hit, like i did
 
Back
Top