problem linking with GCC 3.0 -- undefined reference to `std::codecvt<char, char, __mbstate_t>::id
Mark Martin
mmartin@integratedgenomics.com
Tue Jul 24 11:47:00 GMT 2001
I compiled gcc 3.0 on Red Hat 7.1, since Claudio said that was where he
encountered and resolved the problem. After compiling gcc 3.0 with the
system gcc and binutils on Red Hat 7.1, I found that the problem didn't exist
in libstdc++.a, even without compiling gcc 3.0 with itself.
Unfortunately, moving to Red Hat 7.1 is not a viable option for me because I
encountered additional problems that I wasn't able to resolve. But it might
be a viable option for someone else who needs the improved C++ standards
compliance of gcc 3.0.
After additional experiments that I'm too tired to describe, I still haven't
been able to build a correct version of libstdc++.a on Mandrake 7.2. I hope
that someone else eventually has better luck and is willing to share the
solution.
Mark
On Wednesday 11 July 2001 07:30, you 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
-------------------------------------------------------
More information about the Gcc-help
mailing list