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]

Re: String.h problem



> 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.


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