Hôm nay tôi gặp phải một vấn đề liên kết sau khi cập nhật phiên bản VS 2008-2010, lỗi này là một cái gì đó như thế này:liên kết lỗi sau khi cập nhật từ VS2008 để VS2010
error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" ([email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" ([email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
Tôi có googled vấn đề này trên web, và tìm thấy một bài đăng tương tự trong địa chỉ này: http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/5ac28a31-3339-4db1-90f4-68edad360309
Nhưng không có câu trả lời nào trong số này có thể giải quyết được sự cố của tôi. Bất cứ ai có thể cho tôi một số lời khuyên về cách giải quyết vấn đề này?
Cảm ơn bạn rất nhiều vì đã trợ giúp!
Cụ thể cho lỗi mối liên kết này, Xran và Xlen hai chức năng mà tồn tại trong phiên bản VS2008 của std :: basic_string nhưng không tồn tại trong phiên bản VS2010. Vì vậy, khi cố gắng liên kết thư viện này trong VS2010, nó không thể tìm thấy các chức năng này và gọi một lỗi. – Philip