This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: compiling and linking mechanics
- From: wynfield at gmail dot com
- To: <cygwin at cygwin dot com>
- Date: Sun, 15 Dec 2013 10:57:59 +0900
- Subject: Re: compiling and linking mechanics
- Authentication-results: sourceware.org; auth=none
- References: <20131214235105 dot 3564 at binki> <20131214194009 dot GB3015 at ednor dot casa dot cgf dot cx>
Thanks for summing up the exact problem and solution.
I apprecaite it.
Christopher Faylor wrote:
> 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.
> .... END
--
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