Re: linking c++ code with c library
- From: "junky_fellow@xxxxxxxxxxx" <junky_fellow@xxxxxxxxxxx>
- Date: Sat, 11 Jul 2009 05:22:32 -0700 (PDT)
On Jul 11, 5:07 pm, Paul N <gw7...@xxxxxxx> wrote:
On 11 July, 12:46, jacob navia <ja...@xxxxxxxxxx> wrote:
Nick Keighley wrote:
ok, dynamic and static linking are not mentioned in the C standard..
Hence dynamic linking doesn't mean anything in the standard C
language. Implementations of C may implement these features.
This is just nonsense!
Linking is mentioned EXPLICITLY in the C Standard
See the C standard paragraph 5.1.1.2
"Translation phases".
Translation phase 8 (the final step) is
described as follows:
<quote>
All external object and function references are resolved. Library
components are linked to satisfy external references to functions and
objects not defined in the current translation. All such translator
output is collected into a program image which contains information
needed for execution in its execution environment
<end quote>
Linkers are further mentioned in an example, or referred to when
the identifiers contain wide characters.
Before spewing nonsense please READ the standard you are quoting.
I think he means that the C standard does not mention dynamic linking
or static linking (whatever they are). The draft standard only uses
the word "dynamic" a few times, none of which relate to linking, and
doesn't include the phrase "static linking".
The passage you've quoted doesn't use the words "dynamic" or "static"
or compare two different types of linking.- Hide quoted text -
- Show quoted text -
Thats fine. C Standard may not mention everytning about dynamic or
static linking. But, as a programmer, I believe everyone must know
about it. Every C programer uses library at one or other time. Just
because is is not mentioned in the standard, we should not escape such
things.
.
- Follow-Ups:
- Re: linking c++ code with c library
- From: Keith Thompson
- Re: linking c++ code with c library
- References:
- linking c++ code with c library
- From: junky_fellow@xxxxxxxxxxx
- Re: linking c++ code with c library
- From: Frank
- Re: linking c++ code with c library
- From: junky_fellow@xxxxxxxxxxx
- Re: linking c++ code with c library
- From: Nick Keighley
- Re: linking c++ code with c library
- From: jacob navia
- Re: linking c++ code with c library
- From: Paul N
- linking c++ code with c library
- Prev by Date: Re: linking c++ code with c library
- Next by Date: Re: help a beginner with a basic function that should return a char
- Previous by thread: Re: linking c++ code with c library
- Next by thread: Re: linking c++ code with c library
- Index(es):
Relevant Pages
|