public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
From: mwoehlke <mwoehlke@tibco.com>
To: cygwin-talk@cygwin.com
Subject: Re: Compiling euchre 0.7 n cygwin
Date: Thu, 20 Jul 2006 19:41:00 -0000	[thread overview]
Message-ID: <e9olsb$4nr$2@sea.gmane.org> (raw)
In-Reply-To: <e9oiap$o89$1@sea.gmane.org>

mwoehlke wrote:
> TITTTLing

Naturally, I meant that I *meant* to TITTTL :-) Sorry 'bout that.

> Dave Korn wrote:
>> On 20 July 2006 18:40, mwoehlke wrote:
>>> Laurent Duperval wrote:
>>>> Buster wrote:
>>>>> This is not a Cygwin-specific problem. In
>>>>> euchre-0.7/src/gui/Makefile.am, @GTK_LIBS@ should come at the end of
>>>>> the list of libraries to link, instead of at the beginning. Further
>>>>> questions (for example, about why 'make install' fails while trying to
>>>>> invoke automake -- sorry, it's beyond me) should be directed to the
>>>>> package maintainer.
>>>> Excellent! Changing the order of the libs fixed the problem.
>>>>
>>>> I ended up having to change it directly in the Makefile instead of
>>>> Makefile.am (I probably could've done it in Makefile.in also).
>>>>
>>>> The reason I thought it was a Cygwin issue is that the same code
>>>> compiles fine on Linux (except for a minor ifstream issue).
>>> Right... Linux is forgiving about link order. Most platforms aren't.
>>
>>   Isn't it actually more to do with the fact that Linux tends to use 
>> shared
>> libs, and so if the link order is wrong you get an executable with 
>> unresolved
>> symbols in it, but then those unresolved symbols get resolved anyway at
>> runtime when the library is loaded by ld.so, whereas here on cygwin we 
>> tend to
>> use static link libs, even when we're linking against a .dll, and so 
>> don't get
>> the equivalent 'second chance' to resolve?
> 
> Well, sure, and the fact that the linker *gives* you that second chance. 
> Most linkers will fail if there are unresolved symbols, so in that 
> sense, Linux ld is more forgiving. The order issue is that if you 
> specify the lib before the object, it doesn't know what to import from 
> the lib (but I think it stills makes a note that that lib should be 
> loaded, no?).

-- 
Matthew
"We're all mad here. I'm mad. You're mad... You must be, or you wouldn't 
have come here." -- The Cheshire Cat

           reply	other threads:[~2006-07-20 19:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <e9oiap$o89$1@sea.gmane.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e9olsb$4nr$2@sea.gmane.org' \
    --to=mwoehlke@tibco.com \
    --cc=cygwin-talk@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).