Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 28 May 2002 17:01:41 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygwin ld is messing with me? Message-ID: <20020528210141.GC5732@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020528203729 DOT GJBL5116 DOT mtiwmhc23 DOT worldnet DOT att DOT net AT webmail DOT worldnet DOT att DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020528203729.GJBL5116.mtiwmhc23.worldnet.att.net@webmail.worldnet.att.net> User-Agent: Mutt/1.3.23.1i On Tue, May 28, 2002 at 08:37:26PM +0000, perlspinr AT att DOT 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/