This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

RE: missing symbol in libstdc++ from 23-11-2000




> "Rob Taylor" <robt@flyingpig.com> writes:
>
> | on linking some very complex code that uses wide chars everywhere...
> |
> | libstc++.so: undefined reference to
> | 'std::basic_string<wchar_t, std::char_traits<wchar_t>,
> std::allocator<wchar_t>
> | >::basic_string<std::__normal_iterator<wchar_t*, std::basic_string<wchar_t,
> | std::char_traits<wchar_t>, std::allocator<wchar_t> > >
> | >(std::__normal_iterator<wchar_t*, std::basic_string<wchar_t,
> | std::char_traits<wchar_t>, std::allocator<wchar_t> > >,
> | std::__normal_iterator<wchar_t*, std::basic_string<wchar_t,
> | std::char_traits<wchar_t>, std::allocator<wchar_t> > >,
> std::allocator<wchar_t>
> | const&)'
> |
> | any ideas what the problem is?
>
> Hmm, This is the template constructor stuff which appears to have been
> fixed a while ago.  Is this from a up-to-date tree?

well gcc is from 22-11-00, but I just realised I'm still on binutils 2.9.1 on
that box, which could explain a few things... my other box with 2.10 worked as
happy as pie.


> | also (while I'm here) I had to use c++filt too demangle ld's errors
> myself.. how
> | to I pursuade ld to demangle the new abi?
>
> c++filt has been fixed recently to auto to V3 ABI.  Looks like you're
> using a slightly outdated tree.  Could you update and tell us if you're
> still seeing the same problem?
>
> To explicitly tell c++filt to demangle V3 ABI, you have to say
>
> 	c++filt --format gnu-v3 # for a recent tree
>
> of
> 	c++filt --format gnu-new-abi # for a slightly outdated tree

well c++filt is fine (tho I seems to be slightly outdated as it takes
gnu-new-abi) but the problem I was having was ld not demangling correctly. I'll
let you know if I see this problem with binutils 2.10


Thanks,
Rob Taylor
Flying Pig Systems


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