This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problem linking with GCC 3.0 -- undefined reference to `std::codecvt<char, char, __mbstate_t>::id
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: problem linking with GCC 3.0 -- undefined reference to `std::codecvt<char, char, __mbstate_t>::id
- From: Mark Martin <mmartin at integratedgenomics dot com>
- Date: Thu, 19 Jul 2001 10:33:19 -0500
- Organization: Integrated Genomics
- References: <01071107302804.10102@silversurfer.integratedgenomics.com>
- Reply-To: mmartin at integratedgenomics dot com
Here are a couple of additional data points. I checked the binary rpm from
the 20010627 snapshot from codesourcery and found that the problem is present
in the snapshot. I also built the latest snapshot 20010716 using gcc 2.95.2
then rebuilt the snapshot using itself. When I checked libstdc++.a, I found
that the problem was still present.
My guess is that the compiler is not responsible by itself. Perhaps the
older binutils or libraries that I've been using are partly responsible. Or
maybe I need to protoize gcc 3.0?
Help!
Mark
On Wednesday 11 July 2001 07:30, Mark Martin wrote:
> The following problem has been preventing me from linking when using
> streams in C++ code with GCC 3.0
>
> In function `std::basic_streambuf<char, std::char_traits<char>
>
> >::overflow(int)':
>
> /usr/local/include/g++-v3/bits/std_streambuf.h(.gnu.linkonce.t._ZSt9use_fac
>etISt7codecvtIcc11__mbstate_tEERKT_RKSt6locale+0xc): undefined reference to
> `std::codecvt<char, char, __mbstate_t>::id'
>
> This is the same problem linking that Vickle Chan reported on June 15 on
> gcc-help (See http://gcc.gnu.org/ml/gcc-help/2001-06/msg00113.html) and
> that Dirk Bonekamper reported as a bug on July 6 on gcc-bugs (See
> http://gcc.gnu.org/ml/gcc-bugs/2001-07/msg00247.html).
>
> I have read all of the relevant FAQs and I have tried several different
> approaches to fixing this problem, including installing the most recent
> versions of codecvt.h, locale_facets.tcc, stream_iterator.h, streambuf.tcc,
> and streambuf_iterator.h from the CVS repository. I would be happy to
> gather and provide whatever data might be relevant to fixing this problem.
>
> Any help with this problem would be greatly appreciated!
>
> Mark