X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <9C86CC343078443EBDB1E3F6319817C5@HPLAPTOP>
From: "Aaron Gray" <aaronngray.lists@googlemail.com>
To: <cygwin@cygwin.com>
References: <0B6EC281074944D3A83436895774D25D@HPLAPTOP> <20090306221734.GA10652@ednor.casa.cgf.cx>
Subject: Re: ld library problems
Date: Fri, 6 Mar 2009 22:41:53 -0000
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=original
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> 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.

Where as the following works :-

    g++ -share -L/usr/build/Debug/lib test.o -o test.dll -ltest2.a 

Aaron




--
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/

