Error when building OpenMW(LNK 2019, LNK 2001)

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
kuyondo
Posts: 242
Joined: 29 Mar 2016, 17:45

Error when building OpenMW(LNK 2019, LNK 2001)

Post by kuyondo »

Code: Select all

4>Done building project "osg-ffmpeg-videoplayer.vcxproj".
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl icu_70::UMemory::operator delete(void *)" (__imp_??3UMemory@icu_70@@SAXPEAX@Z) referenced in function "public: virtual void * __cdecl icu_70::Formattable::`scalar deleting destructor'(unsigned int)" (??_GFormattable@icu_70@@UEAAPEAXI@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl icu_70::UMemory::operator delete(void *)" (__imp_??3UMemory@icu_70@@SAXPEAX@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::StringPiece::StringPiece(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0StringPiece@icu_70@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "struct std::pair<class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > > __cdecl LuaUtil::getICUArgs(class std::basic_string_view<char,struct std::char_traits<char> >,class sol::basic_table_core<0,class sol::basic_reference<0> > const &)" (?getICUArgs@LuaUtil@@YA?AU?$pair@V?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@V?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@3@AEBV?$basic_table_core@$0A@V?$basic_reference@$0A@@sol@@@sol@@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::StringPiece::StringPiece(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0StringPiece@icu_70@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class icu_70::UnicodeString & __cdecl icu_70::UnicodeString::operator=(class icu_70::UnicodeString const &)" (__imp_??4UnicodeString@icu_70@@QEAAAEAV01@AEBV01@@Z) referenced in function "private: void __cdecl std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> >::_Assign_range<class icu_70::UnicodeString *>(class icu_70::UnicodeString *,class icu_70::UnicodeString *,struct std::forward_iterator_tag)" (??$_Assign_range@PEAVUnicodeString@icu_70@@@?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@std@@AEAAXPEAVUnicodeString@icu_70@@0Uforward_iterator_tag@1@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::UnicodeString::UnicodeString(class icu_70::UnicodeString const &)" (__imp_??0UnicodeString@icu_70@@QEAA@AEBV01@@Z) referenced in function "private: class icu_70::UnicodeString * __cdecl std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> >::_Ucopy<class icu_70::UnicodeString *>(class icu_70::UnicodeString *,class icu_70::UnicodeString *,class icu_70::UnicodeString *)" (??$_Ucopy@PEAVUnicodeString@icu_70@@@?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@std@@AEAAPEAVUnicodeString@icu_70@@PEAV23@00@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::UnicodeString::UnicodeString(class icu_70::UnicodeString &&)" (__imp_??0UnicodeString@icu_70@@QEAA@$$QEAV01@@Z) referenced in function "public: class icu_70::UnicodeString * __cdecl std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> >::_Emplace_reallocate<class icu_70::UnicodeString>(class icu_70::UnicodeString * const,class icu_70::UnicodeString &&)" (??$_Emplace_reallocate@VUnicodeString@icu_70@@@?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@std@@QEAAPEAVUnicodeString@icu_70@@QEAV23@$$QEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::UnicodeString::UnicodeString(class icu_70::UnicodeString &&)" (__imp_??0UnicodeString@icu_70@@QEAA@$$QEAV01@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::UnicodeString::~UnicodeString(void)" (__imp_??1UnicodeString@icu_70@@UEAA@XZ) referenced in function "public: virtual void * __cdecl icu_70::UnicodeString::`scalar deleting destructor'(unsigned int)" (??_GUnicodeString@icu_70@@UEAAPEAXI@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::UnicodeString::~UnicodeString(void)" (__imp_??1UnicodeString@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class icu_70::UnicodeString __cdecl icu_70::UnicodeString::fromUTF8(class icu_70::StringPiece)" (__imp_?fromUTF8@UnicodeString@icu_70@@SA?AV12@VStringPiece@2@@Z) referenced in function "struct std::pair<class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > > __cdecl LuaUtil::getICUArgs(class std::basic_string_view<char,struct std::char_traits<char> >,class sol::basic_table_core<0,class sol::basic_reference<0> > const &)" (?getICUArgs@LuaUtil@@YA?AU?$pair@V?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@V?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@3@AEBV?$basic_table_core@$0A@V?$basic_reference@$0A@@sol@@@sol@@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class icu_70::UnicodeString __cdecl icu_70::UnicodeString::fromUTF8(class icu_70::StringPiece)" (__imp_?fromUTF8@UnicodeString@icu_70@@SA?AV12@VStringPiece@2@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(char const *,char const *,char const *,char const *)" (__imp_??0Locale@icu_70@@QEAA@PEBD000@Z) referenced in function "public: class sol::basic_object<class sol::basic_reference<0> > __cdecl LuaUtil::L10nManager::getContext(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getContext@L10nManager@LuaUtil@@QEAA?AV?$basic_object@V?$basic_reference@$0A@@sol@@@sol@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(char const *,char const *,char const *,char const *)" (__imp_??0Locale@icu_70@@QEAA@PEBD000@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(class icu_70::Locale const &)" (__imp_??0Locale@icu_70@@QEAA@AEBV01@@Z) referenced in function "public: void __cdecl LuaUtil::L10nManager::Context::updateLang(class LuaUtil::L10nManager *)" (?updateLang@Context@L10nManager@LuaUtil@@QEAAXPEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(class icu_70::Locale const &)" (__imp_??0Locale@icu_70@@QEAA@AEBV01@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(class icu_70::Locale &&)" (__imp_??0Locale@icu_70@@QEAA@$$QEAV01@@Z) referenced in function "public: class icu_70::Locale * __cdecl std::vector<class icu_70::Locale,class std::allocator<class icu_70::Locale> >::_Emplace_reallocate<class icu_70::Locale>(class icu_70::Locale * const,class icu_70::Locale &&)" (??$_Emplace_reallocate@VLocale@icu_70@@@?$vector@VLocale@icu_70@@V?$allocator@VLocale@icu_70@@@std@@@std@@QEAAPEAVLocale@icu_70@@QEAV23@$$QEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Locale::Locale(class icu_70::Locale &&)" (__imp_??0Locale@icu_70@@QEAA@$$QEAV01@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::Locale::~Locale(void)" (__imp_??1Locale@icu_70@@UEAA@XZ) referenced in function "public: __cdecl l10n::MessageBundles::~MessageBundles(void)" (??1MessageBundles@l10n@@QEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::Locale::~Locale(void)" (__imp_??1Locale@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl icu_70::Locale::operator==(class icu_70::Locale const &)const " (__imp_??8Locale@icu_70@@QEBA_NAEBV01@@Z) referenced in function "public: void __cdecl LuaUtil::L10nManager::Context::updateLang(class LuaUtil::L10nManager *)" (?updateLang@Context@L10nManager@LuaUtil@@QEAAXPEAV23@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Formattable::Formattable(double)" (__imp_??0Formattable@icu_70@@QEAA@N@Z) referenced in function "struct std::pair<class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > > __cdecl LuaUtil::getICUArgs(class std::basic_string_view<char,struct std::char_traits<char> >,class sol::basic_table_core<0,class sol::basic_reference<0> > const &)" (?getICUArgs@LuaUtil@@YA?AU?$pair@V?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@V?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@3@AEBV?$basic_table_core@$0A@V?$basic_reference@$0A@@sol@@@sol@@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Formattable::Formattable(char const *)" (__imp_??0Formattable@icu_70@@QEAA@PEBD@Z) referenced in function "struct std::pair<class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > > __cdecl LuaUtil::getICUArgs(class std::basic_string_view<char,struct std::char_traits<char> >,class sol::basic_table_core<0,class sol::basic_reference<0> > const &)" (?getICUArgs@LuaUtil@@YA?AU?$pair@V?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@V?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@3@AEBV?$basic_table_core@$0A@V?$basic_reference@$0A@@sol@@@sol@@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Formattable::Formattable(class icu_70::Formattable const &)" (__imp_??0Formattable@icu_70@@QEAA@AEBV01@@Z) referenced in function "public: class icu_70::Formattable * __cdecl std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >::_Emplace_reallocate<class icu_70::Formattable>(class icu_70::Formattable * const,class icu_70::Formattable &&)" (??$_Emplace_reallocate@VFormattable@icu_70@@@?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@QEAAPEAVFormattable@icu_70@@QEAV23@$$QEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::Formattable::Formattable(class icu_70::Formattable const &)" (__imp_??0Formattable@icu_70@@QEAA@AEBV01@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class icu_70::Formattable & __cdecl icu_70::Formattable::operator=(class icu_70::Formattable const &)" (__imp_??4Formattable@icu_70@@QEAAAEAV01@AEBV01@@Z) referenced in function "private: void __cdecl std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> >::_Assign_range<class icu_70::Formattable *>(class icu_70::Formattable *,class icu_70::Formattable *,struct std::forward_iterator_tag)" (??$_Assign_range@PEAVFormattable@icu_70@@@?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@std@@AEAAXPEAVFormattable@icu_70@@0Uforward_iterator_tag@1@@Z)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::Formattable::~Formattable(void)" (__imp_??1Formattable@icu_70@@UEAA@XZ) referenced in function "public: virtual void * __cdecl icu_70::Formattable::`scalar deleting destructor'(unsigned int)" (??_GFormattable@icu_70@@UEAAPEAXI@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::Formattable::~Formattable(void)" (__imp_??1Formattable@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::MessageFormat::~MessageFormat(void)" (__imp_??1MessageFormat@icu_70@@UEAA@XZ) referenced in function "public: void * __cdecl std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::unordered_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class icu_70::MessageFormat,struct std::hash<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,struct std::equal_to<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class icu_70::MessageFormat> > > >::`scalar deleting destructor'(unsigned int)" (??_G?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$unordered_map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@@std@@@2@@2@@std@@QEAAPEAXI@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::MessageFormat::~MessageFormat(void)" (__imp_??1MessageFormat@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::Formattable::~Formattable(void)" (??1Formattable@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::Locale::~Locale(void)" (??1Locale@icu_70@@UEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::Locale::~Locale(void)" (??1Locale@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::UnicodeString::~UnicodeString(void)" (??1UnicodeString@icu_70@@UEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::UnicodeString::~UnicodeString(void)" (??1UnicodeString@icu_70@@UEAA@XZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual class icu_70::UnicodeString * __cdecl icu_70::UnicodeString::clone(void)const " (?clone@UnicodeString@icu_70@@UEBAPEAV12@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual class icu_70::UnicodeString * __cdecl icu_70::UnicodeString::clone(void)const " (?clone@UnicodeString@icu_70@@UEBAPEAV12@XZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::copy(int,int,int)" (?copy@UnicodeString@icu_70@@UEAAXHHH@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::copy(int,int,int)" (?copy@UnicodeString@icu_70@@UEAAXHHH@Z)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::extractBetween(int,int,class icu_70::UnicodeString &)const " (?extractBetween@UnicodeString@icu_70@@UEBAXHHAEAV12@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::extractBetween(int,int,class icu_70::UnicodeString &)const " (?extractBetween@UnicodeString@icu_70@@UEBAXHHAEAV12@@Z)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl icu_70::UnicodeString::getChar32At(int)const " (?getChar32At@UnicodeString@icu_70@@MEBAHH@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl icu_70::UnicodeString::getChar32At(int)const " (?getChar32At@UnicodeString@icu_70@@MEBAHH@Z)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "protected: virtual char16_t __cdecl icu_70::UnicodeString::getCharAt(int)const " (?getCharAt@UnicodeString@icu_70@@MEBA_SH@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "protected: virtual char16_t __cdecl icu_70::UnicodeString::getCharAt(int)const " (?getCharAt@UnicodeString@icu_70@@MEBA_SH@Z)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::Formattable::getDynamicClassID(void)const " (?getDynamicClassID@Formattable@icu_70@@UEBAPEAXXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::Formattable::getDynamicClassID(void)const " (?getDynamicClassID@Formattable@icu_70@@UEBAPEAXXZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::Locale::getDynamicClassID(void)const " (?getDynamicClassID@Locale@icu_70@@UEBAPEAXXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::Locale::getDynamicClassID(void)const " (?getDynamicClassID@Locale@icu_70@@UEBAPEAXXZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::UnicodeString::getDynamicClassID(void)const " (?getDynamicClassID@UnicodeString@icu_70@@UEBAPEAXXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void * __cdecl icu_70::UnicodeString::getDynamicClassID(void)const " (?getDynamicClassID@UnicodeString@icu_70@@UEBAPEAXXZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl icu_70::UnicodeString::getLength(void)const " (?getLength@UnicodeString@icu_70@@MEBAHXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "protected: virtual int __cdecl icu_70::UnicodeString::getLength(void)const " (?getLength@UnicodeString@icu_70@@MEBAHXZ)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::handleReplaceBetween(int,int,class icu_70::UnicodeString const &)" (?handleReplaceBetween@UnicodeString@icu_70@@UEAAXHHAEBV12@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::UnicodeString::handleReplaceBetween(int,int,class icu_70::UnicodeString const &)" (?handleReplaceBetween@UnicodeString@icu_70@@UEAAXHHAEBV12@@Z)
4>components.lib(l10n.obj) : error LNK2001: unresolved external symbol "public: virtual signed char __cdecl icu_70::UnicodeString::hasMetaData(void)const " (?hasMetaData@UnicodeString@icu_70@@UEBACXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual signed char __cdecl icu_70::UnicodeString::hasMetaData(void)const " (?hasMetaData@UnicodeString@icu_70@@UEBACXZ)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::ByteSink::ByteSink(void)" (__imp_??0ByteSink@icu_70@@QEAA@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl icu_70::UnicodeString::toUTF8String<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (??$toUTF8String@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@UnicodeString@icu_70@@QEBAAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::ByteSink::~ByteSink(void)" (__imp_??1ByteSink@icu_70@@UEAA@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl icu_70::UnicodeString::toUTF8String<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (??$toUTF8String@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@UnicodeString@icu_70@@QEBAAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl icu_70::UnicodeString::toUTF8(class icu_70::ByteSink &)const " (__imp_?toUTF8@UnicodeString@icu_70@@QEBAXAEAVByteSink@2@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl icu_70::UnicodeString::toUTF8String<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (??$toUTF8String@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@UnicodeString@icu_70@@QEBAAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV23@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::UnicodeString::UnicodeString(void)" (__imp_??0UnicodeString@icu_70@@QEAA@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::UnicodeString::UnicodeString(char16_t const *)" (__imp_??0UnicodeString@icu_70@@QEAA@PEB_S@Z) referenced in function "bool __cdecl l10n::checkSuccess(class icu_70::ErrorCode const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct UParseError)" (?checkSuccess@l10n@@YA_NAEBVErrorCode@icu_70@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UUParseError@@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class icu_70::Locale & __cdecl icu_70::Locale::operator=(class icu_70::Locale const &)" (__imp_??4Locale@icu_70@@QEAAAEAV01@AEBV01@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::MessageFormat::MessageFormat(class icu_70::UnicodeString const &,class icu_70::Locale const &,struct UParseError &,enum UErrorCode &)" (__imp_??0MessageFormat@icu_70@@QEAA@AEBVUnicodeString@1@AEBVLocale@1@AEAUUParseError@@AEAW4UErrorCode@@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::MessageFormat::MessageFormat(class icu_70::MessageFormat const &)" (__imp_??0MessageFormat@icu_70@@QEAA@AEBV01@@Z) referenced in function "public: struct std::pair<class std::_List_iterator<class std::_List_val<struct std::_List_simple_types<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class icu_70::MessageFormat> > > >,bool> __cdecl std::_Hash<class std::_Umap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class icu_70::MessageFormat,class std::_Uhash_compare<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::hash<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,struct std::equal_to<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class icu_70::MessageFormat> >,0> >::emplace<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class icu_70::MessageFormat> >(struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class icu_70::MessageFormat> &&)" (??$emplace@U?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@@std@@@?$_Hash@V?$_Umap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@V?$_Uhash_compare@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@@std@@@2@$0A@@std@@@std@@QEAA?AU?$pair@V?$_List_iterator@V?$_List_val@U?$_List_simple_types@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@@std@@@std@@@std@@@std@@_N@1@$$QEAU?$pair@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VMessageFormat@icu_70@@@1@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class icu_70::UnicodeString & __cdecl icu_70::MessageFormat::format(class icu_70::UnicodeString const *,class icu_70::Formattable const *,int,class icu_70::UnicodeString &,enum UErrorCode &)const " (__imp_?format@MessageFormat@icu_70@@QEBAAEAVUnicodeString@2@PEBV32@PEBVFormattable@2@HAEAV32@AEAW4UErrorCode@@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl icu_70::ErrorCode::ErrorCode(void)" (__imp_??0ErrorCode@icu_70@@QEAA@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl icu_70::ErrorCode::~ErrorCode(void)" (__imp_??1ErrorCode@icu_70@@UEAA@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl l10n::MessageBundles::formatMessage(class std::basic_string_view<char,struct std::char_traits<char> >,class std::vector<class icu_70::UnicodeString,class std::allocator<class icu_70::UnicodeString> > const &,class std::vector<class icu_70::Formattable,class std::allocator<class icu_70::Formattable> > const &)const " (?formatMessage@MessageBundles@l10n@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$basic_string_view@DU?$char_traits@D@std@@@4@AEBV?$vector@VUnicodeString@icu_70@@V?$allocator@VUnicodeString@icu_70@@@std@@@4@AEBV?$vector@VFormattable@icu_70@@V?$allocator@VFormattable@icu_70@@@std@@@4@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: signed char __cdecl icu_70::ErrorCode::isSuccess(void)const " (__imp_?isSuccess@ErrorCode@icu_70@@QEBACXZ) referenced in function "bool __cdecl l10n::checkSuccess(class icu_70::ErrorCode const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct UParseError)" (?checkSuccess@l10n@@YA_NAEBVErrorCode@icu_70@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UUParseError@@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: signed char __cdecl icu_70::ErrorCode::isFailure(void)const " (__imp_?isFailure@ErrorCode@icu_70@@QEBACXZ) referenced in function "bool __cdecl l10n::checkSuccess(class icu_70::ErrorCode const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct UParseError)" (?checkSuccess@l10n@@YA_NAEBVErrorCode@icu_70@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UUParseError@@@Z)
4>components.lib(messagebundles.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __cdecl icu_70::ErrorCode::errorName(void)const " (__imp_?errorName@ErrorCode@icu_70@@QEBAPEBDXZ) referenced in function "bool __cdecl l10n::checkSuccess(class icu_70::ErrorCode const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct UParseError)" (?checkSuccess@l10n@@YA_NAEBVErrorCode@icu_70@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UUParseError@@@Z)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::ByteSink::~ByteSink(void)" (??1ByteSink@icu_70@@UEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::ErrorCode::~ErrorCode(void)" (??1ErrorCode@icu_70@@UEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl icu_70::MessageFormat::~MessageFormat(void)" (??1MessageFormat@icu_70@@UEAA@XZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual void __cdecl icu_70::ByteSink::Flush(void)" (?Flush@ByteSink@icu_70@@UEAAXXZ)
4>components.lib(messagebundles.obj) : error LNK2001: unresolved external symbol "public: virtual char * __cdecl icu_70::ByteSink::GetAppendBuffer(int,int,char *,int,int *)" (?GetAppendBuffer@ByteSink@icu_70@@UEAAPEADHHPEADHPEAH@Z)
4>R:\OpenMWDEV\MSVC2019_64\Release\openmw.exe : fatal error LNK1120: 51 unresolved externals
4>Done building project "openmw.vcxproj" -- FAILED.
========== Build: 3 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========



Im building on windows, then encountered this errors. I have no idea how to fix it. Any ideas?
User avatar
AnyOldName3
Posts: 2357
Joined: 26 Nov 2015, 03:25

Re: Error when building OpenMW(LNK 2019, LNK 2001)

Post by AnyOldName3 »

Is this with our Ci script or manually? It looks like you're potentially trying to link with ICU's C API, which is included with the Windows SDK, rather than its C++ API, which our script downloads for you. https://gitlab.com/OpenMW/openmw/-/merge_requests/1821 fixed a problem where the script didn't tell CMake enough for it to realise it needed to use our static libs rather than the Windows ones, and it only got merged a week ago, so you might need to try again with a newer commit.
AnyOldName3, Master of Shadows
kuyondo
Posts: 242
Joined: 29 Mar 2016, 17:45

Re: (Solved) Error when building OpenMW(LNK 2019, LNK 2001)

Post by kuyondo »

The error happened on an old build and rebasing didn't work.

Solved this issue by reinstalling everything again.
Post Reply