This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiling and linking mechanics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]