Cygwin ld is messing with me?

Charles Wilson cwilson@ece.gatech.edu
Thu May 30 00:08:00 GMT 2002


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/



More information about the Cygwin mailing list