This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: String.h problem
- To: bruno dot quesnel at mindready dot com (Bruno Quesnel)
- Subject: Re: String.h problem
- From: Joe Buck <jbuck at possibly dot synopsys dot com>
- Date: Wed, 17 May 2000 08:47:18 -0700 (PDT)
- Cc: pandersson at cosmote dot gr (Andersson Per Ola), bruno dot quesnel at mindready dot com, gcc at gcc dot gnu dot org ('gcc at gcc dot gnu dot org')
> My problem is with the String class, not with the string.h from the standard
> C library.
String is obsolete. It is contained in libg++, which isn't being
actively maintained anymore. g++ does not link to libg++ by default;
only libstdc++ is included by default.
> I'm doing object programming (actually ruling out bugs from) and each program
> that I try to debug uses the String CLASS. Every time I try to link the
> different programs, the unresolved message points out.
Since you can compile but not link, you must have libg++ on your system.
It will not be linked to unless you say -lg++ on your linker command line.