This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5553: std::codecvt link error



>Number:         5553
>Category:       c++
>Synopsis:       std::codecvt link error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 31 03:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ani Ravi
>Release:        3.0.3
>Organization:
>Environment:
redhat 7.0 - i686
>Description:
When using ifstream or ofstream, I get a link error:

/tmp/ccA8eVjK.o: In function `std::codecvt<char, char, __mbstate_t> const& std::use_facet<std::codecvt<char, char, __mbstate_t> >(std::locale const&)':
/tmp/ccA8eVjK.o(.gnu.linkonce.t._ZSt9use_facetISt7codecvtIcc11__mbstate_tEERKT_RKSt6locale+0x7): undefined reference to `std::codecvt<char, char, __mbstate_t>::id'
collect2: ld returned 1 exit status
>How-To-Repeat:
#include <fstream>
int main()
{ std::ofstream ofs; }
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]