From: Joe Mario <mario@zk3.dec.com>
Subject: Re: Strange ld behavior in versions 4.0F and above
Date: Tue, 16 Apr 2002 22:33:53 GMT [thread overview]
Message-ID: <3CBCA5B0.9E3FFB77@zk3.dec.com> (raw)
In-Reply-To: 3CB75DF0.773FA9FB@Mnetcabo.pt
Fernando Nunes wrote:
>
> Hi,
>
> I'm sorry if this is a dummy question with a simple answer, but I've
Fernando:
There are many cases where users want to link their
application with unresolved symbols so they can run
them later with libraries that do define the
unresolved symbol(s). They run "chmod +x" on the
linked image so they can later run it.
As another reply indicated, you can always check the
status returned from the link if you don't want your
makefile to proceed when unresolved symbols are
encountered.
Joe Mario
Compaq Tru64 UNIX Development Environment
> RTFM and got no answers...
>
> I've noticed a change in Tru64 4.0F "ld" behavior.
> If you create a "test.c" whith the following content:
> ---------------------
> main()
> {
> foo();
> }
> ---------------------
>
> (and you ignore the lack of ANSI compliance in the code) and issue the
> command:
>
> cc -o test test.c
>
> You'll get an obviously message from the linker saying that there are
> unresolved symbols.
>
> The point is you'll have a "test" file (without execution permission)
> hanging around.
> This has a nasty effect if you're using the make utility because if by
> mistake you repeat the make process it will skip the "test" compilation
> because the file will be there (although it's completly useless).
>
> Does this have a logical explanation? Is there any compilation/linker
> flag that will avoid this? Is it some kind of bug?
>
> Thank you in advance,
>
> Fernando Nunes
next prev parent reply other threads:[~2002-04-16 22:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-12 22:21 Strange ld behavior in versions 4.0F and above Fernando Nunes
2002-04-14 5:38 ` Paul Pluzhnikov
2002-04-16 22:33 ` Joe Mario [this message]
2002-04-21 0:07 ` Paul Pluzhnikov
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox