Re: Linker Error 2019 _Xlen in VS 2005
marathoner <rajk2000@msn.com.invalid> wrote:
I am getting the following linker errors in Visual Studio 2005:
RMPipe.lib(RMpipeMain.obj) : error LNK2019: unresolved external
symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) 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)"
(?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z)
This had compiled and linked fine in Visual C++ 6.0, but is now
giving these problems in Visual Studio 2005.
You seem to be trying to link code built with VC8 against a LIB file
built with VC6. That won't work. Rebuild everything from source with the
same compiler.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925