Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2005-05-08 16:07:28


On Sun, May 08, 2005 at 12:46:10PM -0500, Rene Rivera wrote:

> For this sole failure on the tests that I run:
>
> http://tinyurl.com/92zns
>
> I did some investigation and narrowed the problem down to this:
[snip testcase]
> Which gives a link error of:
>
> undefined reference to `std::basic_iostream<char,
> std::char_traits<char> >::~basic_iostream()'
>
> And AFAICT that particular dtor is not in libstdc++. And for that matter
> the entire std::basic_iostream<char,..> instance is missing.

I've had very similar problems with that dtor missing from libstdc++,
see http://gcc.gnu.org/ml/libstdc++/2004-09/msg00125.html
(despite the subject line, this was nothing to do with PR16715, that
just made a latent problem apparent)

Could you check whether the wchar_t specialisation is in the
libstdc++.so library?

nm --demangle libstdc++.so | grep 'basic_iostream<wchar_t'

Both the char and wchar_t specialisations should be in the lib, thanks
to explicit instantiation in istream.tcc

This problem eventually went away IIRC, I was tracking the CVS version
and stopped having the problem at some point.

jon


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk