* Cygwin ld is messing with me?
@ 2002-05-28 15:47 perlspinr
2002-05-28 18:30 ` cygwin " Christopher Faylor
2002-05-30 0:08 ` Cygwin " Charles Wilson
0 siblings, 2 replies; 3+ messages in thread
From: perlspinr @ 2002-05-28 15:47 UTC (permalink / raw)
To: cygwin
Hello,
I won't forbear to mention that I thought about emailing
Chuck Wilson privately about this because I know (from
another List recently) that he knows a lot about how ld
finds / resolves library searches when linking. But I
feel that wouldn't be fair to Chuck, so even if it's
going to result in typical cygwin list flames, here
goes. In public.
I have written a makefile to build GD-2.0.1 on cygwin
and it's working nicely for me
http://home.att.net/~perlspinr/makefiles/makefileworkshop
.html
-- in a few hours that url will show a link to the
makefile --
but for one point; once the libGD DLL is built and
installed in it's final desired location on the system,
ld cannot find it when it goes to build (final linking
to create .exes) the applications that Tom Boutell
includes in GD.
My makefile causes the DLL to be named {cyggd.dll.a}
which AFAIU is the "right" way, the Cygwin-packagers
standard way, to name a lib that depends on the
Cygwin1.dll rt (as opposed to -mno-cygwin stuff).
The lib gets put into /usr/local/lib and of course the
DLL itself goes into /usr/local/bin (BOY I sure hope
nobody reading this needs to ask why or challenge it ...
that would be very OTPF [Off The Purpose For] this
thread). But ld (as run by master gcc) reports it cannot
find "-lgd" and dies.
Any ideas, explanations?
TIA,
Soren Andersen (perlspinr)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cygwin ld is messing with me?
2002-05-28 15:47 Cygwin ld is messing with me? perlspinr
@ 2002-05-28 18:30 ` Christopher Faylor
2002-05-30 0:08 ` Cygwin " Charles Wilson
1 sibling, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2002-05-28 18:30 UTC (permalink / raw)
To: cygwin
On Tue, May 28, 2002 at 08:37:26PM +0000, perlspinr@att.net wrote:
>I won't forbear to mention that I thought about emailing Chuck Wilson
>privately about this because I know (from another List recently) that
>he knows a lot about how ld finds / resolves library searches when
>linking. But I feel that wouldn't be fair to Chuck,
Yeah, and it doesn't scale, and if Chuck is on vacation, you won't
receive an answer for a long time, and it is against the oft-stated
policy on this and many other mailing lists.
>so even if it's going to result in typical cygwin list flames, here
>goes. In public.
As opposed to a potential one-on-one flame from Chuck for bothering him
personally...
>My makefile causes the DLL to be named {cyggd.dll.a} which AFAIU is the
>"right" way, the Cygwin-packagers standard way, to name a lib that
>depends on the Cygwin1.dll rt (as opposed to -mno-cygwin stuff).
I'm assuming that your DLL is actually called "cyggd.dll", not
"cyggd.dll.a". From the makefile, that seems to be the case.
"cyggd.dll.a" is the import library.
>The lib gets put into /usr/local/lib and of course the DLL itself goes
>into /usr/local/bin (BOY I sure hope nobody reading this needs to ask
>why or challenge it ... that would be very OTPF [Off The Purpose For]
>this thread). But ld (as run by master gcc) reports it cannot find
>"-lgd" and dies.
Changing your link line to:
gcc -Xl,--verbose ...
should show what the linker is doing.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cygwin ld is messing with me?
2002-05-28 15:47 Cygwin ld is messing with me? perlspinr
2002-05-28 18:30 ` cygwin " Christopher Faylor
@ 2002-05-30 0:08 ` Charles Wilson
1 sibling, 0 replies; 3+ messages in thread
From: Charles Wilson @ 2002-05-30 0:08 UTC (permalink / raw)
To: perlspinr; +Cc: cygwin
perlspinr@att.net wrote:
> My makefile causes the DLL to be named {cyggd.dll.a}
> which AFAIU is the "right" way, the Cygwin-packagers
> standard way, to name a lib that depends on the
> Cygwin1.dll rt (as opposed to -mno-cygwin stuff).
cyggd.dll <<< the typical name for the ***DLL***
libgd.dll.a <<< the typical name for the ***import library***
>
> The lib gets put into /usr/local/lib and of course the
> DLL itself goes into /usr/local/bin (BOY I sure hope
> nobody reading this needs to ask why or challenge it ...
> that would be very OTPF [Off The Purpose For] this
> thread). But ld (as run by master gcc) reports it cannot
> find "-lgd" and dies.
You probably need to include -L/usr/local/lib in your link line. IIRC,
ld doesn't search /usr/local/lib by default, only /lib, /usr/lib, and
the gcc-specific locations (/lib/gcc-lib/something/ ???).
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-29 22:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-28 15:47 Cygwin ld is messing with me? perlspinr
2002-05-28 18:30 ` cygwin " Christopher Faylor
2002-05-30 0:08 ` Cygwin " Charles Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).