Re: Linux programming, is there any C++?
Tom?s ? h?ilidhe wrote:
I'm kind of new to Linux and I've started downloading applications and
installing them. Applications are distributed as source code in a
".tar.gz" file. You unzip the file, navigate to the directory, run
"configure", then run "make", then run "make install".
Anyway, in all the programs I've seen, there's only ever been .c
files, and it looks like only gcc has been invoked. Do people in the
Linux community not use C++ and distribute their source in ".tar.gz"?
I read an interesting article one time one the issues with using C++ as the
linux OS code. Unfortuntately I can't find it, but only references such as:
http://coding.derkeiler.com/Archive/C_CPP/comp.lang.c/2006-01/msg01825.html
The main issue, as I remember it, is using C++ for the core operating system
had big problems with new. new dynamically allocates memory, but when
you're writing the memory modules to an operating system, how is new
supposed to work? There would be some times when new would be fine,
sometimes it wouldn't.
The issue wasn't as much that it couldn't be done, but there was a real
concern that maintainance programmers would use new when they shouldn't and
introduce bugs.
I think that because C++ is not used for the operating system it's become a
matter of, well, if it's not good enough for the operating system, then it's
not good enough for my program, although that wasn't the real issue.
--
Jim Langston
tazmaster@rocketmail.com