Re: Questions about dyld and dynamic C++ classes.
Re: Questions about dyld and dynamic C++ classes.
- Subject: Re: Questions about dyld and dynamic C++ classes.
- From: Derick Centeno <email@hidden>
- Date: Mon, 25 Apr 2005 02:06:12 -0400
On Apr 19, 2005, at 2:41 AM, Matt Watson wrote:
On Apr 18, 2005, at 11:16 PM, Ness Joumaa wrote:
What is the difference between using dyld to add dynamic code to a
library and using dynamic C++ classes instead? Is loading it through
dynamic C++ classes platform dependent? And lastly, how do I create a
dynamic library with Xcode?
I have no idea what dynamic C++ classes are.
Most Darwin-like systems (including Darwin) have standardized on the
dlopen(3) interfaces.
As to how XCode creates dynamic libraries, you should probably ask on
another list. Down here we use libtool or $(CC) -dynamiclib.
matt.
Hi Ness:
You might keep in mind that everything in programming environments is
about context in regards to the task at hand therefore what companies
such as Apple choose as their programming environments may be different
across different departments even within the same company as the tasks
are different. Sometimes complexities do lead to more complexities...
think of the Mandelbrot and Julia fractal sets for example, the wholes
and parts may inter-relate but the scales sure are different and the
borders upon close examination sure doesn't appear anything in likeness
to the road which got us there.
I don't want to belabor the point, but Matt's reply to you is
contextual to what is going on in his department at Apple. His
referral to you to a different list is probably good advice.
However, before you leave (you may already be there and not review this
note) I thought I could point out to you that there are a few pages
discussing Dynamic Libraries which you may wish to refer to. The
discussion appears within the Linux Programming Bible by John Goerzen
between pp. 260-270. According to it, you may have been referring to
the dynamic loader or dynamic linker which refers to tools inclusive in
the C language. In C, the static and
"dynamic" libraries are invoked by the programmer specifically.
However, C++ is designed such that it invokes libraries it uses itself
truly dynamically which is why it is considered a better C and a safer
--- more complete --- environment to do C programming in. Reviewing
the work of Bruce Eckel (his website has online books which are
dowloadable) and other C++ luminaries could be useful in ferreting out
the actual details you are searching an answer for.
Unfortunately, many people consider such nuances a philosophical issue
rather than a practical programming issue. I think real differences do
exist however, I don't have the skill to explain them sufficiently. I
have merely worked or investigated with both languages to have noticed
that the differences of what "dynamic" means in C and C++ for myself.
Much about programming is a personal experience as unique as
determining what one wishes to eat at a particular time. I hope if
nothing else, this note was a pointer to a fruitful direction.
Best wishes...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden