This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0.2: string<unsigned char> failure
- To: "Munagala V. S. Ramanath" <ram at netcom dot com>, egcs-bugs <egcs-bugs at cygnus dot com>
- Subject: Re: egcs-1.0.2: string<unsigned char> failure
- From: "J. de Antonio" <j_antonio at mtsa dot com>
- Date: Mon, 04 May 1998 10:03:25 +0100
- References: <199804302305.QAA11185@netcom7.netcom.com>
Munagala V. S. Ramanath wrote:
>
> The following trivial program produces "undefined symbol" loader
> diagnostics as well as assorted warnings:
>
> ----- CUT HERE -------------------------------------- CUT HERE -----
> // test strings of unsigned chars
> //
> #include <fstream.h>
> #include <string>
>
> typedef basic_string<unsigned char> ustring ;
>
> int
> main()
> {
> unsigned char p[] = { 'a', 'b', 'c' } ;
> ustring s( p, 3 ) ;
> cout << "s.size() = " << s.size() << endl ;
> return 0 ;
> }
I just found it out too.
I've temporaly fixed it addig #include "std/bastring.cc" just at the
near end of bastring.h (just before the last closing bracet) and it has
worked by know, I'm waiting for a response from one of the egcs work
team guys.
Please send me your comments.
--
Jordi de Antonio mailto:j_antonio@mtsa.com