Hi Orly,

# 
# g++ is not a wrapper! we're not in the days of cfront anymore! libstdc++
# implements the C++ standard library (e.g. when you do cin << or cout >>
# you are using libstdc++). I think STL is also partially implemented here.
# however the basic c++ functionality (e.g. classes, overloading) is handled
# by the g++ compiler backend itself.

And I qoute from the man pages..

"... The C and C++ compilers are integrated; g++ is a script to call gcc
with options to  recognize  C++..."

It may not be a C++ language wrapper (macros that recognize C++ constructs
like, as you pointed out, in CFront) but g++ is a wrapper-script that
calls gcc. (Maybe I should have made that clearer the first time.)

# 
# you do not need libstdc++ to compile C++ programs. however many C++
# programs WILL require libstdc++ (the ones that use the C++ library
# features). e.g. MySQL requires C++ but does not use libstdc++.
# 
# 

Yes, you are absolutely correct about that -- you do not need to have
libstdc++ to build C++ programs.  The library is needed only when it is
used -- e.g. string, vector<>, and other stl included templates, plus the
convinience global template functions.  It's like saying, "Ok I will
write a C program but I won't use any libc functions. I will write my own
or somebody else's functions for allocating heap memory, writing to file,
etc."  Possible but will just be like reinventing the wheel, and if you
have all the time in the world. 

He mentioned qt, and I believe it requires the standard C++ library; qt
uses a few std class and global templates.

I took a quick perusal of the MySQL code.  Yes, it doesn't require
libstdc++ (I'll take you word on that) bec. it has its own framework --
string, List templates, and iterators.  The source tarball even has the
mit_pthreads code.

stay cool.

jeff --

# ---------------------------------------------------------------------
# Orlando Andico <[EMAIL PROTECTED]>       POTS Phone: +63   (2) 937-2293
# Mosaic Communications, Inc.            GSM Mobile: +63 (917) 531-5893
# Any sufficiently perverted technology is indistinguishable from Perl.
# 
# 
# -
# Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
# To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
# 


Jeff Gutierrez
---
http://www.gra.ph
graPH - The substance that makes techies tick!



-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to