This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: very odd linker error GCC ld 3.4.6
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'CARTER-HITCHIN, David, GBM'" <David dot CARTER-HITCHIN at rbos dot com>, <binutils at sources dot redhat dot com>
- Date: Fri, 17 Nov 2006 18:05:15 -0000
- Subject: RE: very odd linker error GCC ld 3.4.6
On 16 November 2006 19:35, CARTER-HITCHIN, David, GBM wrote:
> Hi Dave,
>
> Good spot. I did need to refresh my memory there, thanks.
>
> Now I checked the function in the library where it is defined
> and it still comes up with a U beside it. This is extremely
> odd since the compiler succeeds and makes no complaints about
> the function. It's a small, simple C function. Most odd.
The compiler doesn't complain about functions missing, because for all it
knows they're just compiled in a different .C file and extern'd. I suspect
some kind of #ifdeffery might be responsible and it's not even trying to
compile in the function. You'll need to build the library from source, look
through the logs, check whether or not there is a gcc invocation to compile
that particular source file and what -D flags it may be using on the command
line. Then check the .o file that's generated, make sure if it has the
function in or not; then look for whether or not that .o file actually gets
placed into the library .a archive file when ar is invoked.
cheers,
DaveK
--
Can't think of a witty .sigline today....