Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14260

[C++] GTest linker error with vcpkg and Visual Studio 2019

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++
    • None

    Description

      The test-build-vcpkg-win nightly Crossbow job is failing with these linker errors:

       unity_1_cxx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl testing::internal2::PrintBytesInObjectTo(unsigned char const *,unsigned __int64,class std::basic_ostream<char,struct std::char_traits<char> > *)" (__imp_?PrintBytesInObjectTo@internal2@testing@@YAXPEBE_KPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl testing::internal2::operator<<<char,struct std::char_traits<char>,class std::_Vector_iterator<class std::_Vector_val<struct std::_Simple_types<class arrow::compute::ExecNode *> > > >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::_Vector_iterator<class std::_Vector_val<struct std::_Simple_types<class arrow::compute::ExecNode *> > > const &)" (??$?6DU?$char_traits@D@std@@V?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@PEAVExecNode@compute@arrow@@@std@@@std@@@1@@internal2@testing@@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEAV23@AEBV?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@PEAVExecNode@compute@arrow@@@std@@@std@@@3@@Z) 
      
      unity_1_cxx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class testing::AssertionResult __cdecl testing::internal::CmpHelperEQ(char const *,char const *,__int64,__int64)" (__imp_?CmpHelperEQ@internal@testing@@YA?AVAssertionResult@2@PEBD0_J1@Z) referenced in function "void __cdecl arrow::fs::AssertFileContents(class arrow::fs::FileSystem *,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 &)" (?AssertFileContents@fs@arrow@@YAXPEAVFileSystem@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1@Z) 
      
      unity_0_cxx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class testing::AssertionResult __cdecl testing::internal::CmpHelperEQ(char const *,char const *,__int64,__int64)" (__imp_?CmpHelperEQ@internal@testing@@YA?AVAssertionResult@2@PEBD0_J1@Z) 
      

      Link to the error where it occurs in the full log: https://github.com/ursacomputing/crossbow/runs/3799925986#step:4:2737

      Attachments

        Activity

          People

            Unassigned Unassigned
            icook Ian Cook
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: