Ritesh Kapoor wrote:[color=blue]
>
> Hi,
>
> I have been reading some text on C and C++ (i.e advanced books). One
> of the books mentioned that C++ requires a runtime support whereas C
> does not - what the author was trying to say was that once you compile
> a C program the executable created is all that is needed whereas if you
>
> compile a C++ program the executable created requires a C++ runtime
> installed on your system to run the program.[/color]
Ahm, no.
The author is right, that C++ needs more runtime support (because eg. there
is much more going to happen during program startup). But he is not right
in saying that this runtime needs to be *installed* on a system. All
development systems I am aware of provide 2 options: Either you can ship
the runtime in the form of a 'shared library' or you can link the runtime
into the final executable. This is true for C *and* C++. So it is only
the programmer itself that makes the decission if he wants to ship 1
executable and get rid of the problem of having some to ship some libraries
in the correct version with his product or to ship just one single executable
and don't have that problem.
--
Karl Heinz Buchegger
kbuchegg@gascad.at