This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: compiling and linking mechanics
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 14 Dec 2013 14:40:09 -0500
- Subject: Re: compiling and linking mechanics
- Authentication-results: sourceware.org; auth=none
- References: <20131214235105 dot 3564 at binki>
- Reply-to: cygwin at cygwin dot com
On Sat, Dec 14, 2013 at 11:51:05PM +0900, wynfield@gmail.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