problem linking with GCC 3.0 -- undefined reference to `std::codecvt<char, char, __mbstate_t>::id

Mark Martin mmartin@integratedgenomics.com
Tue Jul 10 16:21:00 GMT 2001


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



More information about the Gcc-help mailing list