From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: String Date: Thu, 27 Jan 2000 21:47:17 -0600 Organization: CRL Network Services Lines: 39 Message-ID: <38911145.DC7C2695@a.crl.com> References: <3891087C DOT 624C5D1A AT americasm10 DOT nt DOT com> NNTP-Posting-Host: a116015.stl1.as.crl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Chapman, Ian [CAR:TM14:EXCH]" wrote: > > Hi all, > I'd like to use the String objects which are part of cpp and > libgpp.a. The line ***String x = "abcdetc";*** compiles fine. Is there a reason that you cannot use the ANSI standard C++ string classes? My understanding is that libg++ is no longer supported in later versions of GCC. > The > Linker is undefined reference to String::String(char const *). I > figured I'd got incompatible versions of the various files. I have > gcc 2.81 119,808 June 6-98 > libgpp.a 394,290 June 6-98 > ld 2.8.1 316,982 July 16-97 To get the version I used --version > flag. > > So I figured ld.exe was too old and since I have bnu281.b.zip I > logged into a mirror and determined that the latest bnu was still 281 so > I pulled it over anyway. The ld.exe is now 317,440 bytes and Dec > 31-97. When I ran "ld --version" it tells me "version id - GNU > sh-utilities 1.12" which is a wee bit different considering it came from > a zip file of the same name. So I'm a bit confused there. > > In any case the bottom line is the linker is still not able to link > to the class String. What can I do now? > > I've also looked in the mail archives and found that this > question has been asked before but I could not find a reply offering > more than what I've done. > > Thank to all of you for the great help in the past. > > Regards Ian. -- Weiqi Gao weiqigao AT a DOT crl DOT com