This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
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: 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: Wed, 11 Jul 2001 07:30:28 -0500
- Reply-To: mmartin at integratedgenomics dot com
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_facetISt7codecvtIcc11__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