This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

linking g++ to libstdc++-v3


I have been learning to program C++ recently using the
g++ compiler (gcc
2.95.2-12mdk) on Mandrake 7.2. Everything works fine
using the basic include
<iostream>, <string>...but some parts of the standard
library can not be
found. The most recent example is <sstream> so that I
can use ostringstream
and istringstream rather than the depricated istrstream
and ostrstream in
<strstream>. Nicolai Josuttis really dug the egcs
compiler when he wrote The
C++ Standard Library, but it appears that that has now
been folded into the
gcc compiler group. I was guessing that using c++
rathter that g++ will set
it to use the standard library rather that the gnu c++
library, but that
will not do. I have read that there are some special
compiler flags to use
to link to the right library, but I have not been able
to figure out what
they are. It looks like libstdc++-v3 should now be
linked to by default
after version 2.91 (http://gcc.gnu.org/libstdc++/). I
looked into upgrading
to 2.96 by rpm, but that required uninstalling gnome,
kde, and tons of other
stuff to uninstall my current one, prior to installing
the new one.

Thanks, Mick

-------------------------------------------------------------------------
This mail sent through Atlantic.Net Webmail: http://webmail.atlantic.net/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]