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:message-id:date:from:to:subject:in-reply-to :references; q=dns; s=default; b=JuUE4XjGjl2h0f4wBl3ZIWDez2TQAnO D5WFfQZNzQiO3ejDgIakO+OM1sjU/irimVTIGDL/G7NzvwxGXC1Bb41pH9mGY/Ec kZyI5pvuRhmSUdlzL0SzPpqFk4Ts7g7W0NHODQiTt1Bcr6+hMInEHV81Awf9I/Qq oeHkgcRTCd/E= 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:message-id:date:from:to:subject:in-reply-to :references; s=default; bh=d152xYGUa8ZWTJr+6McTTiTLv2M=; b=ra3s0 iPmdt5zN3yTfiz+WWQpJAhMDQAU7ENkYnR/Y/nOp/S2T7433+S5b6qeOHBO4WIe+ HxC23Dap/6cDhL11+ckK0qHmZhgwNqdgk5LTIosixVn8rJ7gALhAlumURZ04FZhR pQyS3d35TrpTebS6/QcAS6CFNMDnSFbNQQdKGQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mail1.asahi-net.or.jp Message-ID: <20131215183754.3616@binki> Date: Sun, 15 Dec 2013 18:37:54 +0900 From: wynfield AT gmail DOT com To: Subject: Re: compiling and linking mechanics In-reply-to: Your message of Sun, 15 Dec 2013 07:14:44 +0100 References: <20131214235105 DOT 3564 AT binki> <20131214194009 DOT GB3015 AT ednor DOT casa DOT cgf DOT cx> <20131215140144 DOT 2768 AT binki> X-IsSubscribed: yes That's good to know. Thank you and Christopher for the information marco atzeri wrote: > On Sun, Dec 15, 2013 at 6:01 AM, wrote: > > > > > > Christopher Faylor wrote: > > >> .... > > > > > > 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. > > > -- > > > > What is the basis for the assertion that placing -lib before object files is an undesirable thing to do? Knowing why would be educational for all who don't know or think otherwise. For example placing definitions prior use prevents undefined forward reference problems. I am not commenting on possible efficiencies or either technique. Whether by design or fortune, Linux allows developers a less restrictive ordering. I suppose that the ordering is due for the lack of functionality in the linker that Cygwin uses. > > > > Cheers > > > > CGF wrote "on Windows" > it is not a cygwin specific issue, and also other platforms other than > Windows work in the same way. > > For a nice explanation > > http://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking/ > > -- > 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 > -- 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