• Advertisement
Sign in to follow this  

werid error. dont know what it means.

This topic is 4475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

2>game_engine.lib(Engine.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) 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) 2>game_engine.lib(Script.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) 2>game_engine.lib(Engine.obj) : error LNK2019: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z) 2>game_engine.lib(Script.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by 31337noob
i solved it. but still what does it mean?


template compile errors are almost always a mouthful.

look carefully at how you solved it, vs the code that was there before...

Share this post


Link to post
Share on other sites
You have linker errors (LNK*) because of the absence of a definition (unresolved external function) for "public: void __thiscall std::_String_base::_Xran(void)const" (a public, const, member function of std::_String_base named _Xran which takes no parameters and returns nothing). The rest is effectively meaningless (either telling you about the contexts in which this function is needed, or providing the full 'mangled' symbol names that the linker uses as unique IDs for the bits of code).

Presumably this is due to some misconfiguration of your compiler preventing it from including the string implmentation when linking.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement