egcs-1.0.2: string<unsigned char> failure
J. de Antonio
j_antonio@mtsa.com
Mon May 4 01:02:00 GMT 1998
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
More information about the Gcc-bugs
mailing list