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

--
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

Reply via email to