delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/06/17:48:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 6 Mar 2009 17:47:51 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ld library problems
Message-ID: <20090306224751.GA10726@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0B6EC281074944D3A83436895774D25D AT HPLAPTOP> <20090306221734 DOT GA10652 AT ednor DOT casa DOT cgf DOT cx> <9C86CC343078443EBDB1E3F6319817C5 AT HPLAPTOP>
MIME-Version: 1.0
In-Reply-To: <9C86CC343078443EBDB1E3F6319817C5@HPLAPTOP>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, Mar 06, 2009 at 10:41:53PM -0000, Aaron Gray wrote:
>> On Fri, Mar 06, 2009 at 10:09:51PM -0000, Aaron Gray wrote:
>>> I have some Linux code that uses ld and ld finds '.a' archive files
>>> when given a -L path.  Cygwin's ld is not seeing these files and I have
>>> to specifically list them with -l.
>>>
>>> Anyone shine some light on this ?  Do I have to use '.la' ?  Or what ?
>> We can't shed light on this without details.  Please provide some
>> specific examples.
>
> From what I am seeing (this is not a tested example)
>
> Given 'libTest2.a' in '/usr/build/Debug/lib'
>
>    g++ -share -L/usr/build/Debug/lib test.o -o test.dll
>
> This fails to find test2.a on Cygwin where it is found on Linux.

I doubt that test2 would be found on any platform since you didn't
specify it on the command line.

However, we won't get far on untested examples.  You need to provide
specifics not supposition.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019