This is the mail archive of the gcc-bugs@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: egcs-1.0.2: string<unsigned char> failure


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


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