Mail Archives: djgpp/2000/01/28/00:05:58
"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
- Raw text -