[fixed] new google test uncompilable

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[fixed] new google test uncompilable

Post by uwestoehr »

@wmayer : I checked out master and even after a complete rebuilt from scratch, the new Google test does not compile using MSVC:

Code: Select all

2>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in test1.obj
2>LINK : warning LNK4217: symbol '??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ (public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"public: virtual __cdecl std::basic_stringbuf<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_stringbuf<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@UEAA@XZ)'
2>LINK : warning LNK4217: symbol '??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ (public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)'
2>LINK : warning LNK4217: symbol '?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ (public: void __cdecl std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)'
2>LINK : warning LNK4217: symbol '??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z (public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)'
2>LINK : warning LNK4217: symbol '?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ (public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::flush(void))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)'
2>LINK : warning LNK4217: symbol '??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ (public: virtual __cdecl std::basic_iostream<char,struct std::char_traits<char> >::~basic_iostream<char,struct std::char_traits<char> >(void))' defined in 'gtest.lib(gtest-all.obj)' is imported by 'test1.obj' in function '"class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)'
2>test1.obj : error LNK2001: unresolved external symbol _purecall
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol _purecall
2>test1.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > std::cerr" (__imp_?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A) referenced in function "public: static void (__cdecl*__cdecl testing::internal::SuiteApiResolver<class testing::Test>::GetSetUpCaseOrSuite(char const *,int))(void)" (?GetSetUpCaseOrSuite@?$SuiteApiResolver@VTest@testing@@@internal@testing@@SAP6AXXZPEBDH@Z)
2>test1.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z) referenced in function "public: virtual class testing::Test * __cdecl testing::internal::TestFactoryImpl<class FirstSuite_FirstTest_Test>::CreateTest(void)" (?CreateTest@?$TestFactoryImpl@VFirstSuite_FirstTest_Test@@@internal@testing@@UEAAPEAVTest@3@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z)
2>test1.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z) referenced in function "public: virtual void * __cdecl testing::internal::TestFactoryBase::`scalar deleting destructor'(unsigned int)" (??_GTestFactoryBase@internal@testing@@UEAAPEAXI@Z)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,unsigned __int64)" (??3@YAXPEAX_K@Z)
2>test1.obj : error LNK2001: unresolved external symbol __std_terminate
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __std_terminate
2>test1.obj : error LNK2019: unresolved external symbol __imp__invalid_parameter_noinfo_noreturn referenced in function "private: virtual void __cdecl FirstSuite_FirstTest_Test::TestBody(void)" (?TestBody@FirstSuite_FirstTest_Test@@EEAAXXZ)
2>test1.obj : error LNK2019: unresolved external symbol __imp_calloc referenced in function "protected: void __cdecl std::time_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >::_Getvals<wchar_t>(wchar_t,class std::_Locinfo const &)" (??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z)
2>test2.obj : error LNK2001: unresolved external symbol __imp_calloc
2>test1.obj : error LNK2019: unresolved external symbol "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ)
2>test1.obj : error LNK2019: unresolved external symbol __std_exception_copy referenced in function "public: __cdecl std::bad_alloc::bad_alloc(class std::bad_alloc const &)" (??0bad_alloc@std@@QEAA@AEBV01@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __std_exception_copy
2>test1.obj : error LNK2019: unresolved external symbol __std_exception_destroy referenced in function "public: virtual __cdecl std::bad_array_new_length::~bad_array_new_length(void)" (??1bad_array_new_length@std@@UEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __std_exception_destroy
2>test1.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "protected: void __cdecl std::time_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >::_Getvals<wchar_t>(wchar_t,class std::_Locinfo const &)" (??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z)
2>test2.obj : error LNK2001: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ)
2>test1.obj : error LNK2019: unresolved external symbol "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z) referenced in function "void __cdecl std::_Xlen_string(void)" (?_Xlen_string@std@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPEBD@Z)
2>test1.obj : error LNK2001: unresolved external symbol _Mbrtowc
2>test2.obj : error LNK2001: unresolved external symbol _Mbrtowc
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol _Mbrtowc
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (__imp_?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) referenced in function "protected: void __cdecl std::time_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >::_Getvals<wchar_t>(wchar_t,class std::_Locinfo const &)" (??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z)
2>test2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (__imp_?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (__imp_?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) referenced in function "protected: void __cdecl std::time_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >::_Getvals<wchar_t>(wchar_t,class std::_Locinfo const &)" (??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z)
2>test2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (__imp_?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (__imp_?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) referenced in function "protected: void __cdecl std::time_get<char,class std::istreambuf_iterator<char,struct std::char_traits<char> > >::_Getvals<wchar_t>(wchar_t,class std::_Locinfo const &)" (??$_Getvals@_W@?$time_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@IEAAX_WAEBV_Locinfo@1@@Z)
2>test2.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (__imp_?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (__imp_??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (__imp_?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __int64 __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,__int64)" (__imp_?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAA_JPEBD_J@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (__imp_?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) referenced in function "protected: virtual int __cdecl std::basic_stringbuf<char,struct std::char_traits<char>,class std::allocator<char> >::overflow(int)" (?overflow@?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MEAAHH@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (__imp_?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QEAAXH_N@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@0@AEAV10@PEBD@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct std::char_traits<char> >(void)" (__imp_??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)
2>test1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl std::basic_iostream<char,struct std::char_traits<char> >::basic_iostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *)" (__imp_??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatForComparisonFailureMessage<int,int>(int const &,int const &)" (??$FormatForComparisonFailureMessage@HH@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBH0@Z)
2>test1.obj : error LNK2019: unresolved external symbol _CxxThrowException referenced in function "void __cdecl std::_Throw_bad_array_new_length(void)" (?_Throw_bad_array_new_length@std@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol _CxxThrowException
2>test1.obj : error LNK2001: unresolved external symbol __CxxFrameHandler4
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __CxxFrameHandler4
2>test1.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
2>test2.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck
2>test1.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __GSHandlerCheck_EH4
2>test1.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function "private: virtual void __cdecl FirstSuite_SecondTest_Test::TestBody(void)" (?TestBody@FirstSuite_SecondTest_Test@@EEAAXXZ)
2>test2.obj : error LNK2001: unresolved external symbol __security_check_cookie
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __security_check_cookie
2>test1.obj : error LNK2019: unresolved external symbol memcpy referenced in function "char * __cdecl std::_Maklocstr<char>(char const *,char *,struct _Cvtvec const &)" (??$_Maklocstr@D@std@@YAPEADPEBDPEADAEBU_Cvtvec@@@Z)
2>test2.obj : error LNK2001: unresolved external symbol memcpy
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol memcpy
2>test1.obj : error LNK2019: unresolved external symbol memmove referenced in function "void __cdecl `dynamic initializer for 'private: static class testing::TestInfo * FirstSuite_FifthTest_Test::test_info_''(void)" (??__E?test_info_@FirstSuite_FifthTest_Test@@0QEAVTestInfo@testing@@EA@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol memmove
2>test1.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function "private: virtual void __cdecl FirstSuite_SecondTest_Test::TestBody(void)" (?TestBody@FirstSuite_SecondTest_Test@@EEAAXXZ)
2>test2.obj : error LNK2001: unresolved external symbol __security_cookie
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __security_cookie
2>LINK : error LNK2001: unresolved external symbol mainCRTStartup
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void * __cdecl operator new[](unsigned __int64)" (??_U@YAPEAX_K@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::ReadEntireFile(struct _iobuf *)" (?ReadEntireFile@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAU_iobuf@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPEAX@Z) referenced in function "protected: virtual __cdecl std::ctype<char>::~ctype<char>(void)" (??1?$ctype@D@std@@MEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol atexit referenced in function "void __cdecl `dynamic initializer for 'private: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > testing::internal::DeathTest::last_death_test_message_''(void)" (??__E?last_death_test_message_@DeathTest@internal@testing@@0V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __report_rangecheckfailure referenced in function "void __cdecl testing::internal::FailFromInternalError(int)" (?FailFromInternalError@internal@testing@@YAXH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Init_thread_header referenced in function "void __cdecl testing::internal::ColoredPrintf(enum testing::internal::`anonymous namespace'::GTestColor,char const *,...)" (?ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Init_thread_abort referenced in function "int `void __cdecl testing::internal::ColoredPrintf(enum internal::ColoredPrintf::`anonymous namespace'::GTestColor,char const *,...)'::`1'::dtor$0" (?dtor$0@?0??ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ@4HA)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Init_thread_footer referenced in function "void __cdecl testing::internal::ColoredPrintf(enum testing::internal::`anonymous namespace'::GTestColor,char const *,...)" (?ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _invalid_parameter_noinfo_noreturn referenced in function "public: class testing::AssertionResult & __cdecl testing::AssertionResult::operator<<<wchar_t const *>(wchar_t const * const &)" (??$?6PEB_W@AssertionResult@testing@@QEAAAEAV01@AEBQEB_W@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _errno referenced in function "bool __cdecl testing::internal::ParseNaturalNumber<int>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int *)" (??$ParseNaturalNumber@H@internal@testing@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __acrt_iob_func referenced in function "void __cdecl testing::internal::ShuffleRange<int>(class testing::internal::Random *,int,int,class std::vector<int,class std::allocator<int> > *)" (??$ShuffleRange@H@internal@testing@@YAXPEAVRandom@01@HHPEAV?$vector@HV?$allocator@H@std@@@std@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _wfopen referenced in function "struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)" (?FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fclose referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::GetCapturedStream(class testing::internal::CapturedStream * *)" (?GetCapturedStream@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAPEAVCapturedStream@12@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fflush referenced in function "void __cdecl testing::internal::ShuffleRange<int>(class testing::internal::Random *,int,int,class std::vector<int,class std::allocator<int> > *)" (??$ShuffleRange@H@internal@testing@@YAXPEAVRandom@01@HHPEAV?$vector@HV?$allocator@H@std@@@std@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _fileno referenced in function "void __cdecl testing::internal::ColoredPrintf(enum testing::internal::`anonymous namespace'::GTestColor,char const *,...)" (?ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fputc referenced in function "void __cdecl testing::internal::DeathTestAbort(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?DeathTestAbort@internal@testing@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fread referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::ReadEntireFile(struct _iobuf *)" (?ReadEntireFile@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAU_iobuf@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fseek referenced in function "unsigned __int64 __cdecl testing::internal::GetFileSize(struct _iobuf *)" (?GetFileSize@internal@testing@@YA_KPEAU_iobuf@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol ftell referenced in function "unsigned __int64 __cdecl testing::internal::GetFileSize(struct _iobuf *)" (?GetFileSize@internal@testing@@YA_KPEAU_iobuf@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fwrite referenced in function "public: int __cdecl testing::UnitTest::Run(void)" (?Run@UnitTest@testing@@QEAAHXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol remove referenced in function "public: __cdecl testing::internal::ScopedPrematureExitFile::~ScopedPrematureExitFile(void)" (??1ScopedPrematureExitFile@internal@testing@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __stdio_common_vfprintf referenced in function "void __cdecl testing::internal::ColoredPrintf(enum testing::internal::`anonymous namespace'::GTestColor,char const *,...)" (?ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __stdio_common_vsprintf_s referenced in function sprintf_s
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __stdio_common_vsnprintf_s referenced in function _snprintf_s
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol fdopen referenced in function "struct _iobuf * __cdecl testing::internal::posix::FDOpen(int,char const *)" (?FDOpen@posix@internal@testing@@YAPEAU_iobuf@@HPEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strchr referenced in function "bool __cdecl testing::internal::AtomMatchesChar(bool,char,char)" (?AtomMatchesChar@internal@testing@@YA_N_NDD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strrchr referenced in function "private: char const * __cdecl testing::internal::FilePath::FindLastPathSeparator(void)const " (?FindLastPathSeparator@FilePath@internal@testing@@AEBAPEBDXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strstr referenced in function "class testing::AssertionResult __cdecl testing::`anonymous namespace'::IsSubstringImpl<char const *>(bool,char const *,char const *,char const * const &,char const * const &)" (??$IsSubstringImpl@PEBD@?A0x0826f821@testing@@YA?AVAssertionResult@1@_NPEBD1AEBQEBD2@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol wcsstr referenced in function "class testing::AssertionResult __cdecl testing::`anonymous namespace'::IsSubstringImpl<wchar_t const *>(bool,char const *,char const *,wchar_t const * const &,wchar_t const * const &)" (??$IsSubstringImpl@PEB_W@?A0x0826f821@testing@@YA?AVAssertionResult@1@_NPEBD1AEBQEB_W2@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _wcsicmp referenced in function "public: static bool __cdecl testing::internal::String::CaseInsensitiveWideCStringEquals(wchar_t const *,wchar_t const *)" (?CaseInsensitiveWideCStringEquals@String@internal@testing@@SA_NPEB_W0@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _stat64i32 referenced in function "public: bool __cdecl testing::internal::FilePath::DirectoryExists(void)const " (?DirectoryExists@FilePath@internal@testing@@QEBA_NXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol frexp referenced in function "protected: virtual class std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::do_put(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,double)const " (?do_put@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DN@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol nextafter referenced in function "class testing::AssertionResult __cdecl testing::internal::DoubleNearPredFormat(char const *,char const *,char const *,double,double,double)" (?DoubleNearPredFormat@internal@testing@@YA?AVAssertionResult@2@PEBD00NNN@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol calloc referenced in function "char * __cdecl std::_Maklocstr<char>(char const *,char *,struct _Cvtvec const &)" (??$_Maklocstr@D@std@@YAPEADPEBDPEADAEBU_Cvtvec@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol free referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol malloc referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol exit referenced in function "int __cdecl testing::internal::Int32FromEnvOrDie(char const *,int)" (?Int32FromEnvOrDie@internal@testing@@YAHPEBDH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _exit referenced in function "protected: virtual void __cdecl testing::internal::DeathTestImpl::Abort(enum testing::internal::DeathTest::AbortReason)" (?Abort@DeathTestImpl@internal@testing@@MEAAXW4AbortReason@DeathTest@23@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol abort referenced in function "void __cdecl testing::internal::posix::Abort(void)" (?Abort@posix@internal@testing@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _set_abort_behavior referenced in function "public: int __cdecl testing::UnitTest::Run(void)" (?Run@UnitTest@testing@@QEAAHXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _set_error_mode referenced in function "public: int __cdecl testing::UnitTest::Run(void)" (?Run@UnitTest@testing@@QEAAHXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strtol referenced in function "bool __cdecl testing::internal::ParseInt32(class testing::Message const &,char const *,int *)" (?ParseInt32@internal@testing@@YA_NAEBVMessage@2@PEBDPEAH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strtoull referenced in function "bool __cdecl testing::internal::ParseNaturalNumber<int>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int *)" (??$ParseNaturalNumber@H@internal@testing@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol getenv referenced in function "void __cdecl testing::`dynamic initializer for 'FLAGS_gtest_color''(void)" (??__EFLAGS_gtest_color@testing@@YAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: __cdecl std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QEAA@XZ) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strcspn referenced in function "private: class std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::_Fput(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,char const *,unsigned __int64)const " (?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBD_K@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _strdup referenced in function "private: void __cdecl testing::internal::RE::Init(char const *)" (?Init@RE@internal@testing@@AEAAXPEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strerror referenced in function "void __cdecl testing::internal::FailFromInternalError(int)" (?FailFromInternalError@internal@testing@@YAXH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _stricmp referenced in function "public: static bool __cdecl testing::internal::String::CaseInsensitiveCStringEquals(char const *,char const *)" (?CaseInsensitiveCStringEquals@String@internal@testing@@SA_NPEBD0@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol strncmp referenced in function "bool __cdecl testing::internal::HasGoogleTestFlagPrefix(char const *)" (?HasGoogleTestFlagPrefix@internal@testing@@YA_NPEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __std_reverse_trivially_swappable_4 referenced in function "class std::vector<enum testing::internal::edit_distance::EditType,class std::allocator<enum testing::internal::edit_distance::EditType> > __cdecl testing::internal::edit_distance::CalculateOptimalEdits(class std::vector<unsigned __int64,class std::allocator<unsigned __int64> > const &,class std::vector<unsigned __int64,class std::allocator<unsigned __int64> > const &)" (?CalculateOptimalEdits@edit_distance@internal@testing@@YA?AV?$vector@W4EditType@edit_distance@internal@testing@@V?$allocator@W4EditType@edit_distance@internal@testing@@@std@@@std@@AEBV?$vector@_KV?$allocator@_K@std@@@5@0@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPEBD@Z) referenced in function "public: static void __cdecl std::_String_val<struct std::_Simple_types<char> >::_Xran(void)" (?_Xran@?$_String_val@U?$_Simple_types@D@std@@@std@@SAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xruntime_error(char const *)" (?_Xruntime_error@std@@YAXPEBD@Z) referenced in function "public: static unsigned __int64 __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$ctype@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _localtime64_s referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FormatEpochTimeInMillisAsIso8601(__int64)" (?FormatEpochTimeInMillisAsIso8601@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Xtime_get_ticks referenced in function "__int64 __cdecl testing::internal::GetTimeInMillis(void)" (?GetTimeInMillis@internal@testing@@YA_JXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Query_perf_counter referenced in function "private: void __cdecl testing::TestInfo::Run(void)" (?Run@TestInfo@testing@@AEAAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Query_perf_frequency referenced in function "private: void __cdecl testing::TestInfo::Run(void)" (?Run@TestInfo@testing@@AEAAXXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Mtx_lock referenced in function "private: static unsigned long __cdecl testing::internal::`anonymous namespace'::ThreadWithParamSupport::ThreadMain(void *)" (?ThreadMain@ThreadWithParamSupport@?A0x0826f821@internal@testing@@CAKPEAX@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Mtx_unlock referenced in function "private: static unsigned long __cdecl testing::internal::`anonymous namespace'::ThreadWithParamSupport::ThreadMain(void *)" (?ThreadMain@ThreadWithParamSupport@?A0x0826f821@internal@testing@@CAKPEAX@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Cnd_wait referenced in function "private: static unsigned long __cdecl testing::internal::`anonymous namespace'::ThreadWithParamSupport::ThreadMain(void *)" (?ThreadMain@ThreadWithParamSupport@?A0x0826f821@internal@testing@@CAKPEAX@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Throw_C_error(int)" (?_Throw_C_error@std@@YAXH@Z) referenced in function "private: static unsigned long __cdecl testing::internal::`anonymous namespace'::ThreadWithParamSupport::ThreadMain(void *)" (?ThreadMain@ThreadWithParamSupport@?A0x0826f821@internal@testing@@CAKPEAX@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::_Iostream_error_category2::message(int)const " (?message@_Iostream_error_category2@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Facet_Register(class std::_Facet_base *)" (?_Facet_Register@std@@YAXPEAV_Facet_base@1@@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol isdigit referenced in function "bool __cdecl testing::internal::ParseNaturalNumber<int>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int *)" (??$ParseNaturalNumber@H@internal@testing@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol isxdigit referenced in function "enum testing::internal::CharFormat __cdecl testing::internal::PrintCharsAsStringTo<char>(char const *,unsigned __int64,class std::basic_ostream<char,struct std::char_traits<char> > *)" (??$PrintCharsAsStringTo@D@internal@testing@@YA?AW4CharFormat@01@PEBD_KPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol isspace referenced in function "class testing::AssertionResult __cdecl testing::internal::`anonymous namespace'::HRESULTFailureHelper(char const *,char const *,long)" (?HRESULTFailureHelper@?A0x0826f821@internal@testing@@YA?AVAssertionResult@3@PEBD0J@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol iscntrl referenced in function "void __cdecl testing::internal::`anonymous namespace'::ConditionalPrintAsText(char const *,unsigned __int64,class std::basic_ostream<char,struct std::char_traits<char> > *)" (?ConditionalPrintAsText@?A0x0826f821@internal@testing@@YAXPEBD_KPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol toupper referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::FlagToEnvVar(char const *)" (?FlagToEnvVar@internal@testing@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol localeconv referenced in function "private: class std::ostreambuf_iterator<char,struct std::char_traits<char> > __cdecl std::num_put<char,class std::ostreambuf_iterator<char,struct std::char_traits<char> > >::_Fput(class std::ostreambuf_iterator<char,struct std::char_traits<char> >,class std::ios_base &,char,char const *,unsigned __int64)const " (?_Fput@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBA?AV?$ostreambuf_iterator@DU?$char_traits@D@std@@@2@V32@AEAVios_base@2@DPEBD_K@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Getctype referenced in function "public: static unsigned __int64 __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$ctype@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Getcvt referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Tolower referenced in function "protected: virtual char __cdecl std::ctype<char>::do_tolower(char)const " (?do_tolower@?$ctype@D@std@@MEBADD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Toupper referenced in function "protected: virtual char __cdecl std::ctype<char>::do_toupper(char)const " (?do_toupper@?$ctype@D@std@@MEBADD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _Wcrtomb referenced in function "protected: virtual int __cdecl std::codecvt<wchar_t,char,struct _Mbstatet>::do_out(struct _Mbstatet &,wchar_t const *,wchar_t const *,wchar_t const * &,char *,char *,char * &)const " (?do_out@?$codecvt@_WDU_Mbstatet@@@std@@MEBAHAEAU_Mbstatet@@PEB_W1AEAPEB_WPEAD3AEAPEAD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z) referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z) referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Locimp::_New_Locimp(class std::locale::_Locimp const &)" (?_New_Locimp@_Locimp@locale@std@@CAPEAV123@AEBV123@@Z) referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static void __cdecl std::locale::_Locimp::_Locimp_Addfac(class std::locale::_Locimp *,class std::locale::facet *,unsigned __int64)" (?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z) referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(bool)" (?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z) referenced in function "public: __cdecl std::basic_stringstream<char,struct std::char_traits<char>,class std::allocator<char> >::basic_stringstream<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??0?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPEAV12@@Z) referenced in function "protected: void __cdecl std::basic_ios<char,struct std::char_traits<char> >::init(class std::basic_streambuf<char,struct std::char_traits<char> > *,bool)" (?init@?$basic_ios@DU?$char_traits@D@std@@@std@@IEAAXPEAV?$basic_streambuf@DU?$char_traits@D@std@@@2@_N@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPEAV12@@Z) referenced in function "public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _getcwd referenced in function "public: static class testing::internal::FilePath __cdecl testing::internal::FilePath::GetCurrentDir(void)" (?GetCurrentDir@FilePath@internal@testing@@SA?AV123@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _mkdir referenced in function "public: bool __cdecl testing::internal::FilePath::CreateDirectoriesRecursively(void)const " (?CreateDirectoriesRecursively@FilePath@internal@testing@@QEBA_NXZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _isatty referenced in function "void __cdecl testing::internal::ColoredPrintf(enum testing::internal::`anonymous namespace'::GTestColor,char const *,...)" (?ColoredPrintf@internal@testing@@YAXW4GTestColor@?A0x0826f821@12@PEBDZZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _open_osfhandle referenced in function "public: virtual enum testing::internal::DeathTest::TestRole __cdecl testing::internal::WindowsDeathTest::AssumeRole(void)" (?AssumeRole@WindowsDeathTest@internal@testing@@UEAA?AW4TestRole@DeathTest@23@XZ)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol close referenced in function "public: __cdecl testing::internal::CapturedStream::CapturedStream(int)" (??0CapturedStream@internal@testing@@QEAA@H@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol creat referenced in function "public: __cdecl testing::internal::CapturedStream::CapturedStream(int)" (??0CapturedStream@internal@testing@@QEAA@H@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol dup referenced in function "public: __cdecl testing::internal::CapturedStream::CapturedStream(int)" (??0CapturedStream@internal@testing@@QEAA@H@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol dup2 referenced in function "public: __cdecl testing::internal::CapturedStream::CapturedStream(int)" (??0CapturedStream@internal@testing@@QEAA@H@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol read referenced in function "void __cdecl testing::internal::FailFromInternalError(int)" (?FailFromInternalError@internal@testing@@YAXH@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol write referenced in function "protected: virtual void __cdecl testing::internal::DeathTestImpl::Abort(enum testing::internal::DeathTest::AbortReason)" (?Abort@DeathTestImpl@internal@testing@@MEAAXW4AbortReason@DeathTest@23@@Z)
2>  Hint on symbols that are defined and could potentially match:
2>    "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::write(char const *,__int64)" (?write@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEBD_J@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "struct std::_Smanip<int> __cdecl std::setbase(int)" (?setbase@std@@YA?AU?$_Smanip@H@1@H@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * __cdecl testing::FormatSehExceptionMessage(unsigned long,char const *)" (?FormatSehExceptionMessage@testing@@YAPEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KPEBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "struct std::_Smanip<__int64> __cdecl std::setprecision(__int64)" (?setprecision@std@@YA?AU?$_Smanip@_J@1@_J@Z) referenced in function "public: class testing::AssertionResult & __cdecl testing::AssertionResult::operator<<<char [2]>(char const (&)[2])" (??$?6$$BY01D@AssertionResult@testing@@QEAAAEAV01@AEAY01$$CBD@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "struct std::_Smanip<__int64> __cdecl std::setw(__int64)" (?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl testing::internal::String::FormatByte(unsigned char)" (?FormatByte@String@internal@testing@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@E@Z)
2>gtest.lib(gtest-all.obj) : error LNK2001: unresolved external symbol __C_specific_handler
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol __chkstk referenced in function "class testing::AssertionResult __cdecl testing::internal::`anonymous namespace'::HRESULTFailureHelper(char const *,char const *,long)" (?HRESULTFailureHelper@?A0x0826f821@internal@testing@@YA?AVAssertionResult@3@PEBD0J@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol _dclass referenced in function "class testing::AssertionResult __cdecl testing::internal::DoubleNearPredFormat(char const *,char const *,char const *,double,double,double)" (?DoubleNearPredFormat@internal@testing@@YA?AVAssertionResult@2@PEBD00NNN@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol ceilf referenced in function "public: class std::_List_const_iterator<class std::_List_val<struct std::_List_simple_types<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > __cdecl std::_Hash<class std::_Uset_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,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<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,0> >::emplace_hint<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class std::_List_const_iterator<class std::_List_val<struct std::_List_simple_types<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> > &&)" (??$emplace_hint@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@?$_Hash@V?$_Uset_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@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@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@$0A@@std@@@std@@QEAA?AV?$_List_const_iterator@V?$_List_val@U?$_List_simple_types@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@@std@@@1@V21@$$QEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol memchr referenced in function "unsigned __int64 __cdecl std::_Traits_find<struct std::char_traits<char> >(char const * const,unsigned __int64,unsigned __int64,char const * const,unsigned __int64)" (??$_Traits_find@U?$char_traits@D@std@@@std@@YA_KQEBD_K101@Z)
2>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol memcmp referenced in function "bool __cdecl std::operator==<char,struct std::char_traits<char>,class std::allocator<char> >(char const * const,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NQEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z)
...
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: new google test uncompilable

Post by wmayer »

I checked out master and even after a complete rebuilt from scratch, the new Google test does not compile using MSVC:
According to your log it compiles fine but it doesn't link. :) I will have a look later today...

For the time being you should unload the failing projects.
worser
Posts: 4
Joined: Mon Oct 10, 2022 10:20 am

Re: new google test uncompilable

Post by worser »

Maybe:
from https://chromium.googlesource.com/exter ... /README.md
Visual Studio Dynamic vs Static Runtimes

By default, new Visual Studio projects link the C runtimes dynamically but GoogleTest links them statically. This will generate an error that looks something like the following: gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MTd_StaticDebug’ doesn't match value ‘MDd_DynamicDebug’ in main.obj

GoogleTest already has a CMake option for this: gtest_force_shared_crt

Enabling this option will make gtest link the runtimes dynamically too, and match the project in which it is included.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: new google test uncompilable

Post by wmayer »

User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: new google test uncompilable

Post by uwestoehr »

wmayer wrote: Fri Dec 02, 2022 1:50 pm Fixed with git commit f6cf0e7f3d
Thanks, Unfortunately the problem is not ersolved for me. I recompiled from scratch and instead of 144 unresolved externals, I have now only 5 left:

Code: Select all

7>gtest.lib(gtest-all.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in test1.obj
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in gtest.lib(gtest-all.obj)
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct std::char_traits<char> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in gtest.lib(gtest-all.obj)
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: void __cdecl std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ) already defined in gtest.lib(gtest-all.obj)
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z) already defined in gtest.lib(gtest-all.obj)
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in gtest.lib(gtest-all.obj)
7>msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_iostream<char,struct std::char_traits<char> >::~basic_iostream<char,struct std::char_traits<char> >(void)" (??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in gtest.lib(gtest-all.obj)
7>gtest_main.lib(gtest_main.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in test1.obj
7>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "private: static int std::locale::id::_Id_cnt" (?_Id_cnt@id@locale@std@@0HA) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
7>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: static class std::locale::id std::codecvt<wchar_t,char,struct _Mbstatet>::id" (?id@?$codecvt@_WDU_Mbstatet@@@std@@2V0locale@2@A) referenced in function "public: __cdecl std::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >::wstring_convert<struct `struct _iobuf * __cdecl testing::internal::posix::FOpen(char const *,char const *)'::`2'::wchar_codecvt,wchar_t,class std::allocator<wchar_t>,class std::allocator<char> >(void)" (??0?$wstring_convert@Uwchar_codecvt@?1??FOpen@posix@internal@testing@@YAPEAU_iobuf@@PEBD0@Z@_WV?$allocator@_W@std@@V?$allocator@D@8@@std@@QEAA@XZ)
7>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "public: static class std::locale::id std::ctype<char>::id" (?id@?$ctype@D@std@@2V0locale@2@A) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAAEBV?$ctype@D@0@AEBVlocale@0@@Z)
7>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > std::cout" (?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A) referenced in function "public: virtual void __cdecl testing::internal::`anonymous namespace'::FailureTest::TestBody(void)" (?TestBody@FailureTest@?A0xf700a208@internal@testing@@UEAAXXZ)
7>gtest.lib(gtest-all.obj) : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > std::cerr" (?cerr@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A) referenced in function "void __cdecl testing::internal::ShuffleRange<int>(class testing::internal::Random *,int,int,class std::vector<int,class std::allocator<int> > *)" (??$ShuffleRange@H@internal@testing@@YAXPEAVRandom@01@HHPEAV?$vector@HV?$allocator@H@std@@@std@@@Z)
7>D:\FreeCAD-build\tests\Release\Google_Tests_run.exe : fatal error LNK1120: 5 unresolved externals
7>Done building project "Google_Tests_run.vcxproj" -- FAILED.
This is with the latest MSVC, the latest CMake and with using precompiled headers.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: new google test uncompilable

Post by wmayer »

Thanks, Unfortunately the problem is not ersolved for me. I recompiled from scratch and instead of 144 unresolved externals, I have now only 5 left:
I guess it's because you have already executed CMake to configure the project files and there by the default the option gtest_force_shared_crt was set to off. Re-run CMake and set the option to on.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: new google test uncompilable

Post by uwestoehr »

wmayer wrote: Fri Dec 02, 2022 7:29 pm I guess it's because you have already executed CMake to configure the project files and there by the default the option gtest_force_shared_crt was set to off. Re-run CMake and set the option to on.
Thanks. This works now.
Post Reply