This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin ld is messing with me?



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]