From: Shriramana Sharma <samjnaa@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: unable to link to a static library present alongside a shared library
Date: Thu, 19 Apr 2007 15:40:04 +0530 [thread overview]
Message-ID: <46273FFC.2070902@gmail.com> (raw)
In-Reply-To: <17958.31994.242710.443269@cerise.gclements.plus.com>
Thanks for your continuing patience.
Glynn Clements wrote:
> Another significant difference is that Windows executables and DLLs
> associate any unresolved symbols with the DLL from which they are
> meant to be loaded. OTOH, the Linux loader doesn't care where a symbol
> comes from, so long as something defines it.
And what would be the implications of that? I mean, what happens
practically because of that?
>> http://en.wikipedia.org/wiki/Library_(computing)#Dynamic_linking and
>
> Windows (and maybe other systems) allows numeric references to symbols
> in an external DLL. The executable or DLL can refer to e.g. symbol #7
> in foo.dll rather than to the name of the function.
I edited the page accordingly. I hope it is correct what I have written.
>> The article http://en.wikipedia.org/wiki/Static_Library further confuses
>
>> The article also says "... or at runtime by the linker or linking
>> loader". I think the word "respectively" should be added after "loader",
>> but still I don't understand how refs to symbols provided by a static
>> lib can be resolved at runtime.
I edited this page also to be clearer. Again I hope it is correct.
I again sincerely thank you for your continuing patience and support,
Shriramana Sharma.
next prev parent reply other threads:[~2007-04-19 10:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 12:09 unable to link to a static library present alongside a shared library Shriramana Sharma
2007-04-18 12:19 ` cyon.john
2007-04-18 12:33 ` Shriramana Sharma
2007-04-18 14:00 ` cyon.john
2007-04-18 17:34 ` Shriramana Sharma
2007-04-18 15:12 ` Glynn Clements
2007-04-18 18:40 ` Shriramana Sharma
2007-04-18 20:18 ` Glynn Clements
2007-04-19 10:10 ` Shriramana Sharma [this message]
2007-04-19 12:34 ` leslie.polzer
2007-04-19 13:48 ` Shriramana Sharma
2007-04-19 16:30 ` leslie.polzer
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=46273FFC.2070902@gmail.com \
--to=samjnaa@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/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 NNTP newsgroup(s).