delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/14/14:40:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=D2Wuv7D3A4Xz4aXN6XuBlLwlJ5p8VJYA78dKH0zKznoUMcQt6puLL
fgSVpuCc/sAWMSU3kZyE2SYb7jVRaaXuJR0atSkfyzloKoxG83AtQOeVEUwguutV
dV766ebCWcbhndkU8CEA0HCbLhk5bzB6xhR900bBBENRj78fs+RLyI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=JqOpomUIOnp0Fa1kO9w6xmhQbxk=; b=HY5wJcR8Bbhj5L3Q93wV8xKn+BNi
zNNGR6D76elC23a5VpO11qxpbpZe+x0pjQIvN6fDmIIh3pD/NTKDZ32hfsI3/KyG
CGH8cwEAuO8ILwPEa2K1DErDeOoS05V9gYujuHbInPCiw+nqpLLc3m+EIqibL6q4
tA0b50vzjD8lMPo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mho-01-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+H+ETvpChhhVyle6EfqDYB
Date: Sat, 14 Dec 2013 14:40:09 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: compiling and linking mechanics
Message-ID: <20131214194009.GB3015@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20131214235105 DOT 3564 AT binki>
MIME-Version: 1.0
In-Reply-To: <20131214235105.3564@binki>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Sat, Dec 14, 2013 at 11:51:05PM +0900, wynfield AT gmail DOT com wrote:
>With the current set of gcc and loader, does there still exist the
>diffence that makes porting GNU Linux programs a challenge sometimes.
>I haven't build for a while, but I recall that the order of libraries
>in a ?  linking process on the command line wouldn't work as they do in
>on GNU Linux systems.
>
>Is this still the case?  Is there a document somewhere that describes
>the situation well and how to modify arguments to enable a clean link
>on cygwin?

It isn't incredibly difficult to understand:  Some poorly written makefiles
put a -lib before the object files which rely on them.  That works by
coincidence in Linux but doesn't work on Windows.  So put the -libraries
last.

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

- Raw text -


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