Windows: Stream: Failed to materialize symbols


ROOT Version: 6.32.02
Platform: win64
Compiler: MSVC 19.33.31630.0 (Visual Studio 2022 17.3.6)


Dear ROOT Team,

I built ROOT 6.32 on Windows 10 and running tutorials/tree/basic.C failed.

Building ROOT

After cloning v6-32-02 tag:

PS C:\...\root> git status
Not currently on any branch.
nothing to commit, working tree clean
PS C:\...\root> git describe
v6-32-02
PS C:\...\root>

I built ROOT from source using Visual Studio 2022 and Python 3.12.

Here are some excerpts of CMake configuration:

-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe - skipped
[...]
-- Found Python3: C:/.../AppData/Local/Programs/Python/Python312/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter Development Development.Module Development.Embed 
[...]
-- Enabled support for:  builtin_clang builtin_cling builtin_freetype builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_pcre builtin_xxhash builtin_zlib builtin_zstd pyroot shared

Minimal Working Example

Similar to tutorials/tree/basic.C, here is a minimal example to trigger the error:
test_stream.C:

void test_stream(const string& filename) {
    double x {0};
    ifstream stream;
    stream.open(filename);
    if (stream.is_open())
        stream >> x;
    cout << "x: " << x << endl;
}

data.md:

1.0

Test 1

Official Binary Package

After loading your official binary package root_v6.32.02.win64.vc17.zip:

PS C:\...\visual-root> . ..\dl\root_v6.32.02.win64.vc17\root\bin\thisroot.ps1

the test passes:

PS C:\...\visual-root> root -q 'test_stream.C(\"data.md\")'
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jun 18 2024, 04:16:09                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.39.33521.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


Processing test_stream.C("data.md")...
x: 1
PS C:\...\visual-root>

Installation From Source

With my custom installation:

PS C:\...\visual-root> . ..\..\cache\root\bin\thisroot.ps1

the test fails:

PS C:\...\visual-root> root -q 'test_stream.C(\"data.md\")'
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jul 17 2024, 11:08:32                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.33.31630.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


Processing test_stream.C("data.md")...
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { _CTA3?AVbad_array_new_length@std@@, ??_R0?AV?$numpunct@D@std@@@8, ??_7?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@, ??$_Immortalize_memcpy_image@V_Iostream_error_category2@std@@@std@@YAAEBV_Iostream_error_category2@0@XZ, ??_R0?AV?$codecvt@DDU_Mbstatet@@@std@@@8, ??_7_Iostream_error_category2@std@@6B@, ??_C@_02OOPEBDOJ@pP?$AA@, ?_Getal@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV?$allocator@D@2@XZ, ??_7_Facet_base@std@@6B@, ??_R4?$numpunct@D@std@@6B@, ??_7?$numpunct@D@std@@6B@, ??_7bad_cast@std@@6B@, ?_Get_first@?$_Compressed_pair@V?$allocator@D@std@@V?$_String_val@U?$_Simple_types@D@std@@@2@$00@std@@QEBAAEBV?$allocator@D@2@XZ, ??_C@_02HIKPPMOK@Ld?$AA@, ??_R3_Crt_new_delete@std@@8, ??_R2?$codecvt@DDU_Mbstatet@@@std@@8, ??_7ctype_base@std@@6B@, __orc_init_func.cling-module-8, ??_7ios_base@std@@6B@, ??_C@_05LAPONLG@false?$AA@, ??_C@_0BF@OOHOMBOF@ios_base?3?3eofbit?5set?$AA@, ??_R0?AVcodecvt_base@std@@@8, ??_C@_02BBAHNLBA@?$CFp?$AA@, ??_7?$basic_istream@DU?$char_traits@D@std@@@std@@6B@, ??_R0?AV_Facet_base@std@@@8, ??_7?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@, ??_R2?$numpunct@D@std@@8, ??R<lambda_1>@?0??push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z@QEBA?A?<auto>@@QEADQEBD_KD@Z, ??_7bad_array_new_length@std@@6B@, ??_R1A@?0A@EA@bad_cast@std@@8, ??_R3?$codecvt@DDU_Mbstatet@@@std@@8, ??_7?$ctype@D@std@@6B@, $.cling-module-8.__inits.0, ?make_error_code@std@@YA?AVerror_code@1@W4io_errc@1@@Z, ??_R3facet@locale@std@@8, ??_C@_04LOAJBDKD@true?$AA@, ??_7exception@std@@6B@, ??0failure@ios_base@std@@QEAA@PEBDAEBVerror_code@2@@Z, ?iostream_category@std@@YAAEBVerror_category@1@XZ, ??R<lambda_1>@?0??insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV23@_K0D@Z@QEBA?A?<auto>@@QEADQEBD000D@Z, ??_R4?$codecvt@DDU_Mbstatet@@@std@@6B@, ??_7facet@locale@std@@6B@, ??_G?$basic_ios@DU?$char_traits@D@std@@@std@@UEAAPEAXI@Z, ??_R17?0A@EA@_Crt_new_delete@std@@8, ??_7bad_alloc@std@@6B@, ??0_Sentry_base@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@AEAV12@@Z, ?assign@?$_Narrow_char_traits@DH@std@@SAXAEADAEBD@Z, ??_C@_02CLHGNPPK@Lu?$AA@, ?copy@?$_Char_traits@DH@std@@SAPEADQEADQEBD_K@Z, ?_Release@_Fake_proxy_ptr_impl@std@@QEAAXXZ, ??_R2_Crt_new_delete@std@@8, ??0?$_String_val@U?$_Simple_types@D@std@@@std@@QEAA@XZ, ??_7_System_error@std@@6B@, ?name@_Iostream_error_category2@std@@UEBAPEBDXZ, ?push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z, ??_G_Iostream_error_category2@std@@UEAAPEAXI@Z, ??$_Reallocate_grow_by@V<lambda_1>@?0??append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV34@QEBD_K@Z@PEBD_K@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV01@_KV<lambda_1>@?0??append@01@QEAAAEAV01@QEBD0@Z@PEBD_K@Z, ?equal@?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@QEBA_NAEBV12@@Z, ??$use_facet@V?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@std@@YAAEBV?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@0@AEBVlocale@0@@Z, ??_R1A@?0A@EA@_Crt_new_delete@std@@8, ?category@error_code@std@@QEBAAEBVerror_category@2@XZ, ??_R1A@?0A@EA@?$numpunct@D@std@@8, ??$_Reallocate_grow_by@V<lambda_1>@?0??append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV34@_KD@Z@_KD@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV01@_KV<lambda_1>@?0??append@01@QEAAAEAV01@0D@Z@_KD@Z, ?_Allocate@_Default_allocate_traits@std@@SAPEAX_K@Z, ??_R3?$numpunct@D@std@@8, ??_C@_02MDKMJEGG@eE?$AA@, ??1?$_String_val@U?$_Simple_types@D@std@@@std@@QEAA@XZ, ??_R1A@?0A@EA@ios_base@std@@8, ?length@?$_Narrow_char_traits@DH@std@@SA_KQEBD@Z, ?_Get_first@?$_Compressed_pair@V?$allocator@D@std@@V?$_String_val@U?$_Simple_types@D@std@@@2@$00@std@@QEAAAEAV?$allocator@D@2@XZ, ??_C@_02BDDLJJBK@lu?$AA@, ??_7failure@ios_base@std@@6B@, ??$_Destroy_in_place@PEAD@std@@YAXAEAPEAD@Z, ??_R4codecvt_base@std@@6B@, ?_Iostream_error@?4??message@_Iostream_error_category2@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@H@Z@4QBDB, ??$_Deallocate@$0BA@$0A@@std@@YAXPEAX_K@Z, _CT??_R0?AVsystem_error@std@@@840, _CTA5?AVfailure@ios_base@std@@, ??$_Voidify_iter@PEAPEAD@std@@YAPEAXPEAPEAD@Z, ??_R2_Iostream_error_category2@std@@8, ??0error_code@std@@QEAA@HAEBVerror_category@1@@Z, ??$?0$$V@?$_Compressed_pair@V?$allocator@D@std@@V?$_String_val@U?$_Simple_types@D@std@@@2@$00@std@@QEAA@U_Zero_then_variadic_args_t@1@@Z, ??_R1A@?0A@EA@exception@std@@8, _CT??_R0?AVruntime_error@std@@@824, ??_C@_02EAOCLKAK@ld?$AA@, ??_R17A@3EA@?$_Iosb@H@std@@8, ??$_Common_extract_with_num_get@N@?$basic_istream@DU?$char_traits@D@std@@@std@@AEAAAEAV01@AEAN@Z, ??0_Fake_proxy_ptr_impl@std@@QEAA@AEBU_Fake_allocator@1@AEBU_Container_base0@1@@Z, ??$_Find_elem@D$0BL@@std@@YA_KAEAY0BL@$$CBDD@Z, ??$max@_K@std@@YAAEB_KAEB_K0@Z, ??0?$allocator@D@std@@QEAA@XZ, ??1?$_Compressed_pair@V?$allocator@D@std@@V?$_String_val@U?$_Simple_types@D@std@@@2@$00@std@@QEAA@XZ, ?do_decimal_point@?$numpunct@D@std@@MEBADXZ, __real@4024000000000000, ?_Orphan_all@_Container_base0@std@@QEAAXXZ, ??_Gexception@std@@UEAAPEAXI@Z, ??$_Convert_size@_K@std@@YA_K_K@Z, ?grouping@?$numpunct@D@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ??_Gbad_alloc@std@@UEAAPEAXI@Z, ??$?0AEAPEAV_Facet_base@std@@@?$_Compressed_pair@U?$default_delete@V_Facet_base@std@@@std@@PEAV_Facet_base@2@$00@std@@QEAA@U_Zero_then_variadic_args_t@1@AEAPEAV_Facet_base@1@@Z, ??$exchange@PEAV_Facet_base@std@@$$T@std@@YAPEAV_Facet_base@0@AEAPEAV10@$$QEA$$T@Z, ??1_Iostream_error_category2@std@@UEAA@XZ, ?to_int_type@?$_Narrow_char_traits@DH@std@@SAHAEBD@Z, ?value@error_condition@std@@QEBAHXZ, ?value@error_code@std@@QEBAHXZ, ??8error_category@std@@QEBA_NAEBV01@@Z, ?max_size@?$_Default_allocator_traits@V?$allocator@D@std@@@std@@SA_KAEBV?$allocator@D@2@@Z, ??$_To_address@PEBD@std@@YA?A?<auto>@@AEBQEBD@Z, ??0exception@std@@QEAA@QEBD@Z, ??$__std_find_trivial@$$CBDD@@YAPEBDPEBD0D@Z, ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@QEBD_K@Z, ??_G_System_error@std@@UEAAPEAXI@Z, ??0?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z, ??$end@$$CBD$0BN@@std@@YAPEBDAEAY0BN@$$CBD@Z, ??$_Find_elem@D$0BN@@std@@YA_KAEAY0BN@$$CBDD@Z, ?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAX_K@Z, ??_R0?AV?$basic_streambuf@DU?$char_traits@D@std@@@std@@@8, ??$end@$$CBD$0BL@@std@@YAPEBDAEAY0BL@$$CBD@Z, ?_Calculate_growth@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBA_K_K@Z, ??_G?$basic_istream@DU?$char_traits@D@std@@@std@@UEAAPEAXI@Z, ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_KD@Z, ?_Take_contents@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAXAEAV12@@Z, ?_Src@?1??_Getifld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1HAEBVlocale@3@@Z@4QBDB, _vsprintf_s_l, ?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXAEBV?$codecvt@DDU_Mbstatet@@@2@@Z, ??$begin@$$CBD$0P@@std@@YAPEBDAEAY0P@$$CBD@Z, ??$_Find_elem@D$0P@@std@@YA_KAEAY0P@$$CBDD@Z, ??_G?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAAPEAXI@Z, ??$_Reallocate_grow_by@V<lambda_1>@?0??push_back@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAXD@Z@D@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV01@_KV<lambda_1>@?0??push_back@01@QEAAXD@Z@D@Z, ??_R3?$basic_ifstream@DU?$char_traits@D@std@@@std@@8, ??$use_facet@V?$numpunct@D@std@@@std@@YAAEBV?$numpunct@D@0@AEBVlocale@0@@Z, ?_Calculate_growth@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@CA_K_K00@Z, ??_R1A@?0A@EA@?$basic_ifstream@DU?$char_traits@D@std@@@std@@8, ??_8?$basic_ifstream@DU?$char_traits@D@std@@@std@@7B@, ??$_Ungetc@D@std@@YA_NAEBDPEAU_iobuf@@@Z, ??_R0?AV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@8, ?do_grouping@?$numpunct@D@std@@MEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ?eq_int_type@?$_Narrow_char_traits@DH@std@@SA_NAEBH0@Z, ?do_falsename@?$numpunct@D@std@@MEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ?_Get_first@?$_Compressed_pair@U?$default_delete@V_Facet_base@std@@@std@@PEAV_Facet_base@2@$00@std@@QEAAAEAU?$default_delete@V_Facet_base@std@@@2@XZ, ?_Tidy_init@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAXXZ, ??$_Pocma@V?$allocator@D@std@@@std@@YAXAEAV?$allocator@D@0@0@Z, ??$_Adl_verify_range@V?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@V12@@std@@YAXAEBV?$istreambuf_iterator@DU?$char_traits@D@std@@@0@0@Z, ??_E?$basic_ifstream@DU?$char_traits@D@std@@@std@@$4PPPPPPPM@A@EAAPEAXI@Z, ?do_thousands_sep@?$numpunct@D@std@@MEBADXZ, ??1?$_Tidy_guard@V?$numpunct@D@std@@@std@@QEAA@XZ, ??$?0U?$default_delete@V_Facet_base@std@@@std@@$0A@@?$unique_ptr@V_Facet_base@std@@U?$default_delete@V_Facet_base@std@@@2@@std@@QEAA@PEAV_Facet_base@1@@Z, ??__E?id@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A@@YAXXZcling_module_8_, ??_E?$basic_istream@DU?$char_traits@D@std@@@std@@$4PPPPPPPM@A@EAAPEAXI@Z, ?front@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEADXZ, ??_R3?$basic_istream@DU?$char_traits@D@std@@@std@@8, ??_R0?AV?$basic_istream@DU?$char_traits@D@std@@@std@@@8, ?_Set_back@?$basic_filebuf@DU?$char_traits@D@std@@@std@@AEAAXXZ, ??__E?id@?$codecvt@DDU_Mbstatet@@@std@@2V0locale@2@A@@YAXXZcling_module_8_, ?_Myptr@?$_String_val@U?$_Simple_types@D@std@@@std@@QEBAPEBDXZ, ??_R2?$basic_ifstream@DU?$char_traits@D@std@@@std@@8, ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXPEBDHH@Z, ??_C@_08EPJLHIJG@bad?5cast?$AA@, ??_R3ios_base@std@@8, ?_Getcat@?$numpunct@D@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z, ??$end@$$CBD$0P@@std@@YAPEBDAEAY0P@$$CBD@Z, ?do_truename@?$numpunct@D@std@@MEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ??E?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAAAEAV01@XZ, ??$_Find_unchecked@PEBDD@std@@YAPEBDPEBDQEBDAEBD@Z, ?is_open@?$basic_filebuf@DU?$char_traits@D@std@@@std@@QEBA_NXZ, ?_Init@?$numpunct@D@std@@IEAAXAEBV_Locinfo@2@_N@Z, ?release@?$unique_ptr@V_Facet_base@std@@U?$default_delete@V_Facet_base@std@@@2@@std@@QEAAPEAV_Facet_base@2@XZ, ??_R2ios_base@std@@8, ??_R0?AU_Crt_new_delete@std@@@8, ?_Clamp_suffix_size@?$_String_val@U?$_Simple_types@D@std@@@std@@QEBA_K_K0@Z, ??$begin@$$CBD$0BL@@std@@YAPEBDAEAY0BL@$$CBD@Z, _CT??_R0?AVbad_cast@std@@@824, ?insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@_K0D@Z, ??_R4_Facet_base@std@@6B@, ??$_Allocate@$0BA@U_Default_allocate_traits@std@@$0A@@std@@YAPEAX_K@Z, ??_R1A@?0A@EA@codecvt_base@std@@8, ??_7system_error@std@@6B@, ??$_Construct_in_place@PEADAEBQEAD@std@@YAXAEAPEADAEBQEAD@Z, ??$_Getloctxt@V?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@D@std@@YAHAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@0@0_KPEBDW4_Case_sensitive@0@@Z, ??_R4?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@, ??_7codecvt_base@std@@6B@, ??_R4ios_base@std@@6B@, ??_R4facet@locale@std@@6B@, ??0locale@std@@QEAA@XZ, ??$begin@$$CBD$0BN@@std@@YAPEBDAEAY0BN@$$CBD@Z, .weak.??__F_Static@?1???$_Immortalize_memcpy_image@V_Iostream_error_category2@std@@@std@@YAAEBV_Iostream_error_category2@1@XZ@YAXXZ.default.?test_stream@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z, ??__E?id@?$numpunct@D@std@@2V0locale@2@A@@YAXXZcling_module_8_, ??_G?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAAPEAXI@Z, ??_7?$codecvt@DDU_Mbstatet@@@std@@6B@, ?_OptionsStorage@?1??__local_stdio_printf_options@@9@4_KA, ??_R2?$_Iosb@H@std@@8, ??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@AEAV12@@Z, ?category@error_condition@std@@QEBAAEBVerror_category@2@XZ, __real@41200000, ?message@error_code@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ?_Inc@?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@AEAAXXZ, ??_G?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@MEAAPEAXI@Z, ??$_Reallocate_grow_by@V<lambda_1>@?0??insert@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV34@_K0D@Z@_K_KD@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV01@_KV<lambda_1>@?0??insert@01@QEAAAEAV01@00D@Z@_K2D@Z, ?assign@?$_Narrow_char_traits@DH@std@@SAPEADQEAD_KD@Z, ??_R3?$_Iosb@H@std@@8, ??1_Bxty@?$_String_val@U?$_Simple_types@D@std@@@std@@QEAA@XZ, ?max_size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ, ??_7runtime_error@std@@6B@, ??0?$fpos@U_Mbstatet@@@std@@QEAA@_J@Z, ?_Large_string_engaged@?$_String_val@U?$_Simple_types@D@std@@@std@@QEBA_NXZ, ??__E?id@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@2V0locale@2@A@@YAXXZcling_module_8_, ??_R3ctype_base@std@@8, ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@AEBV12@@Z, ??R?$default_delete@V_Facet_base@std@@@std@@QEBAXPEAV_Facet_base@1@@Z, ?_Stinit@?1??_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@23@@Z@4U_Mbstatet@@A, ??0?$fpos@U_Mbstatet@@@std@@QEAA@U_Mbstatet@@_J@Z, ??0_Bxty@?$_String_val@U?$_Simple_types@D@std@@@std@@QEAA@XZ, ?test_stream@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z, ?_Erase_noexcept@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAAEAV12@_K_K@Z, ??$min@_K@std@@YAAEB_KAEB_K0@Z, ?c_str@locale@std@@QEBAPEBDXZ, ??_G?$codecvt@DDU_Mbstatet@@@std@@MEAAPEAXI@Z, ??_R2?$ctype@D@std@@8, ??_R1A@?0A@EA@failure@ios_base@std@@8, ??D?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAAAEAV01@XZ, ??_R2runtime_error@std@@8, ??_R17?0A@EA@?$_Iosb@H@std@@8, ?_Psave@?$_Facetptr@V?$ctype@D@std@@@std@@2PEBVfacet@locale@2@EB, ??$_Within_limits@PEBDD@std@@YA_NAEBQEBDAEBD@Z, ?_Getal@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBAAEBV?$allocator@D@2@XZ, __local_stdio_printf_options, ??_R2failure@ios_base@std@@8, ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_KXZ, ??_R3system_error@std@@8, ?_Check_offset@?$_String_val@U?$_Simple_types@D@std@@@std@@QEBAX_K@Z, ?_Psave@?$_Facetptr@V?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@std@@2PEBVfacet@locale@2@EB, ??_R1A@?0A@EA@runtime_error@std@@8, ?failed@?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@QEBA_NXZ, ??0?$numpunct@D@std@@QEAA@AEBV_Locinfo@1@_K_N@Z, ??_R3exception@std@@8, ??_R1A@?0A@EA@?$basic_filebuf@DU?$char_traits@D@std@@@std@@8, ?is_open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEBA_NXZ, ??0sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAA@AEAV12@@Z, ?to_char_type@?$_Narrow_char_traits@DH@std@@SADAEBH@Z, ??$_Unfancy@D@std@@YAPEADPEAD@Z, ??_G?$basic_ifstream@DU?$char_traits@D@std@@@std@@UEAAPEAXI@Z, ??1failure@ios_base@std@@UEAA@XZ, ?_Init@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IEAAXPEAU_iobuf@@W4_Initfl@12@@Z, ??_Gsystem_error@std@@UEAAPEAXI@Z, ??_R3?$ctype@D@std@@8, ?state@?$fpos@U_Mbstatet@@@std@@QEBA?AU_Mbstatet@@XZ, ?_Src@?1??_Getffld@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB, ??$_Float_put_desired_precision@O@std@@YAH_JH@Z, ??0sentry@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@AEAV12@_N@Z, ??0bad_alloc@std@@AEAA@QEBD@Z, ?_Alloc_proxy@_Container_base0@std@@QEAAXAEBU_Fake_allocator@2@@Z, ?not_eof@?$_Narrow_char_traits@DH@std@@SAHAEBH@Z, ??_R0?AVios_base@std@@@8, ??$_Maklocchr@D@std@@YADDPEADAEBU_Cvtvec@@@Z, ??1_System_error@std@@UEAA@XZ, ??_G?$ctype@D@std@@MEAAPEAXI@Z, ??$_Fgetc@D@std@@YA_NAEADPEAU_iobuf@@@Z, ??_R2exception@std@@8, ??8std@@YA_NAEBVerror_condition@0@0@Z, ??Bsentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEBA_NXZ, ??_R4exception@std@@6B@, ?thousands_sep@?$numpunct@D@std@@QEBADXZ, ldexpf, ??$min@_J@std@@YAAEB_JAEB_J0@Z, ??_R4?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@, ??4?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAAAEAV01@D@Z, ??_Gruntime_error@std@@UEAAPEAXI@Z, ??E?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAAAEAV01@XZ, ??_G_Facet_base@std@@UEAAPEAXI@Z, ??$_Fputc@D@std@@YA_NDPEAU_iobuf@@@Z, ??_R1A@?0A@EA@?$basic_istream@DU?$char_traits@D@std@@@std@@8, ??_R3?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_R1A@A@3FA@?$basic_ios@DU?$char_traits@D@std@@@std@@8, ??R<lambda_1>@?0??append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV23@QEBD_K@Z@QEBA?A?<auto>@@QEAD0101@Z, ??_Gfailure@ios_base@std@@UEAAPEAXI@Z, ?eof@?$_Narrow_char_traits@DH@std@@SAHXZ, ??_C@_00CNPNBAHC@?$AA@, ??1?$numpunct@D@std@@MEAA@XZ, ?_Myptr@?$_String_val@U?$_Simple_types@D@std@@@std@@QEAAPEADXZ, ??_R4?$basic_istream@DU?$char_traits@D@std@@@std@@6B@, ??$_Get_size_of_n@$00@std@@YA_K_K@Z, ??$_Float_put_desired_precision@N@std@@YAH_JH@Z, ??R<lambda_1>@?0??append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV23@_KD@Z@QEBA?A?<auto>@@QEADQEBD00D@Z, ??0?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAA@XZ, ?_Psave@?$_Facetptr@V?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@std@@2PEBVfacet@locale@2@EB, ??1bad_alloc@std@@UEAA@XZ, ?_Peek@?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@AEBADXZ, ??_Gios_base@std@@UEAAPEAXI@Z, ??D?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@QEBADXZ, ??0exception@std@@QEAA@QEBDH@Z, ??_R2system_error@std@@8, ??$_Getvals@D@?$numpunct@D@std@@IEAAXDPEBUlconv@@U_Cvtvec@@@Z, ??_B?1???$_Immortalize_memcpy_image@V_Iostream_error_category2@std@@@std@@YAAEBV_Iostream_error_category2@0@XZ@51, frexpl, ??_G?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAAPEAXI@Z, ??_Gbad_cast@std@@UEAAPEAXI@Z, ??Bsentry@?$basic_istream@DU?$char_traits@D@std@@@std@@QEBA_NXZ, ??_Gctype_base@std@@UEAAPEAXI@Z, ??_R2bad_alloc@std@@8, ??_R1A@?0A@EA@?$basic_streambuf@DU?$char_traits@D@std@@@std@@8, ?_Psave@?$_Facetptr@V?$numpunct@D@std@@@std@@2PEBVfacet@locale@2@EB, ??_Gfacet@locale@std@@MEAAPEAXI@Z, ??_R2?$basic_streambuf@DU?$char_traits@D@std@@@std@@8, ?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@QEBD@Z, ??_R1A@?0A@EA@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_G?$numpunct@D@std@@MEAAPEAXI@Z, ?_Tidy@?$numpunct@D@std@@AEAAXXZ, ??_R1A@?0A@EA@bad_array_new_length@std@@8, ??_R3bad_alloc@std@@8, ??_R3?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_R2ctype_base@std@@8, ?max@?$numeric_limits@_J@std@@SA_JXZ, ??_C@_0BF@PHHKMMFD@ios_base?3?3badbit?5set?$AA@, ?select_on_container_copy_construction@?$_Default_allocator_traits@V?$allocator@D@std@@@std@@SA?AV?$allocator@D@2@AEBV32@@Z, ??0locale@std@@QEAA@AEBV01@@Z, ??_C@_0BF@KINCDENJ@bad?5array?5new?5length?$AA@, ??B?$fpos@U_Mbstatet@@@std@@QEBA_JXZ, ?empty@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBA_NXZ, ??_R4?$ctype@D@std@@6B@, ??_Gcodecvt_base@std@@UEAAPEAXI@Z, ??_R4?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@, ??_R1A@?0A@EA@?$codecvt@DDU_Mbstatet@@@std@@8, ??_R3bad_array_new_length@std@@8, ??_R1A@?0A@EA@_Facet_base@std@@8, ?_Psave@?$_Facetptr@V?$codecvt@DDU_Mbstatet@@@std@@@std@@2PEBVfacet@locale@2@EB, ?_Stofx_v2@std@@YAMPEBDPEAPEADHPEAH@Z, ??_C@_0BA@ELKIONDK@bad?5locale?5name?$AA@, ??_R3failure@ios_base@std@@8, ??_7?$basic_streambuf@DU?$char_traits@D@std@@@std@@6B@, ??_R3bad_cast@std@@8, _CT??_R0?AVbad_alloc@std@@@824, ??_R2?$basic_ios@DU?$char_traits@D@std@@@std@@8, _CT??_R0?AVexception@std@@@824, ?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAAAEAV12@$$QEAV12@@Z, ??_R0?AVerror_category@std@@@8, ??_R0?AV_System_error@std@@@8, ??_R3_Iostream_error_category2@std@@8, ??_R4_System_error@std@@6B@, ??_C@_0BG@FMKFHCIL@ios_base?3?3failbit?5set?$AA@, _CT??_R0?AV_System_error@std@@@840, ??_C@_02LMMGGCAJ@?3?5?$AA@, _CTA2?AVbad_cast@std@@, ??_R1A@?0A@EA@system_error@std@@8, ??_R4bad_cast@std@@6B@, ??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@, ??_R2error_category@std@@8, ??_R0?AV?$basic_ios@DU?$char_traits@D@std@@@std@@@8, ??$_Construct@$01PEBD@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAXQEBD_K@Z, ??_R0?AUctype_base@std@@@8, ??_C@_0BC@EOODALEL@Unknown?5exception?$AA@, ??_R0?AVruntime_error@std@@@8, ?_Src@?1??_Getffldx@?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@AEBAHPEADAEAV?$istreambuf_iterator@DU?$char_traits@D@std@@@3@1AEAVios_base@3@PEAH@Z@4QBDB, ??_R1A@?0A@EA@ctype_base@std@@8, ??_R0?AV_Iostream_error_category2@std@@@8, ??_R2_Facet_base@std@@8, ??_R1A@?0A@EA@_System_error@std@@8, ??_R3_Facet_base@std@@8, ??_R0?AVfailure@ios_base@std@@@8, ?truename@?$numpunct@D@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ??_R1A@?0A@EA@?$ctype@D@std@@8, ??_R4?$basic_ios@DU?$char_traits@D@std@@@std@@6B@, ?_Stodx_v2@std@@YANPEBDPEAPEADHPEAH@Z, ??_R1A@?0A@EA@?$basic_ios@DU?$char_traits@D@std@@@std@@8, ?_Fake_alloc@std@@3U_Fake_allocator@1@B, ??_R0?AV?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@8, ??_R4bad_alloc@std@@6B@, ??_R0?AVfacet@locale@std@@@8, _CT??_R0?AVbad_array_new_length@std@@@824, ??_R1A@?0A@EA@facet@locale@std@@8, ??_R1A@?0A@EA@error_category@std@@8, ??_R0?AVbad_array_new_length@std@@@8, ??_R1A@?0A@EA@_Iostream_error_category2@std@@8, ??_R2?$basic_filebuf@DU?$char_traits@D@std@@@std@@8, ??_R0?AV?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@8, ??_R0?AV?$ctype@D@std@@@8, ??_R1A@?0A@EA@?$_Iosb@H@std@@8, ??_R4runtime_error@std@@6B@, ??$?0V?$allocator@D@std@@$$V@?$_Compressed_pair@V?$allocator@D@std@@V?$_String_val@U?$_Simple_types@D@std@@@2@$00@std@@QEAA@U_One_then_variadic_args_t@1@$$QEAV?$allocator@D@1@@Z, ??_R3_System_error@std@@8, ?_Getfacet@locale@std@@QEBAPEBVfacet@12@_K@Z, ??_R2?$basic_istream@DU?$char_traits@D@std@@@std@@8, ?_Makestr@_System_error@std@@CA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@Verror_code@2@V32@@Z, ??_R3runtime_error@std@@8, ??_R4ctype_base@std@@6B@, ??_R0?AVexception@std@@@8, ?_Adjust_manually_vector_aligned@std@@YAXAEAPEAXAEA_K@Z, ??_R1A@?0A@EA@bad_alloc@std@@8, ??_7?$basic_ifstream@DU?$char_traits@D@std@@@std@@6B@, ??$use_facet@V?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@@std@@YAAEBV?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@0@AEBVlocale@0@@Z, ??$_Adl_verify_range@PEBDPEBD@std@@YAXAEBQEBD0@Z, ??_R2?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_R4system_error@std@@6B@, ??_R2?$num_get@DV?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_R2bad_array_new_length@std@@8, ??_R3?$basic_streambuf@DU?$char_traits@D@std@@@std@@8, ??_R2_System_error@std@@8, ??_R4?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@, _TI2?AVbad_cast@std@@, ??$_Adl_verify_range@PEADPEBD@std@@YAXAEBQEADAEBQEBD@Z, ?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@HH@Z, ??_R4_Iostream_error_category2@std@@6B@, ??0system_error@std@@QEAA@Verror_code@1@PEBD@Z, ??_R4failure@ios_base@std@@6B@, ??_R0?AVbad_alloc@std@@@8, ??_Gbad_array_new_length@std@@UEAAPEAXI@Z, ??_R4?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@6B@, ??_R3?$basic_ios@DU?$char_traits@D@std@@@std@@8, ??_R3error_category@std@@8, ??0error_condition@std@@QEAA@HAEBVerror_category@1@@Z, ??_R2facet@locale@std@@8, ??_C@_08LLGCOLLL@iostream?$AA@, ??_R3?$basic_filebuf@DU?$char_traits@D@std@@@std@@8, _TI5?AVfailure@ios_base@std@@, ??_R0?AVbad_cast@std@@@8, ??_R2bad_cast@std@@8, ?decimal_point@?$numpunct@D@std@@QEBADXZ, ?message@_Iostream_error_category2@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z, ??_C@_0BI@CFPLBAOH@invalid?5string?5position?$AA@, ??_R0?AV?$_Iosb@H@std@@@8, ?_Static@?1???$_Immortalize_memcpy_image@V_Iostream_error_category2@std@@@std@@YAAEBV_Iostream_error_category2@1@XZ@4V21@A, ??_R1A@?0A@EA@?$num_put@DV?$ostreambuf_iterator@DU?$char_traits@D@std@@@std@@@std@@8, ??_C@_0BA@JFNIOLAK@string?5too?5long?$AA@, ??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QEAA@XZ, ??_R0?AVsystem_error@std@@@8, _CT??_R0?AVfailure@ios_base@std@@@840, ??_7?$basic_ios@DU?$char_traits@D@std@@@std@@6B@, ??_R1A@A@3EA@ios_base@std@@8, ??_C@_03MMEIOMHE@x?3?5?$AA@, ??_R2codecvt_base@std@@8, ??0?$istreambuf_iterator@DU?$char_traits@D@std@@@std@@QEAA@AEAV?$basic_istream@DU?$char_traits@D@std@@@1@@Z, ??_7?$basic_filebuf@DU?$char_traits@D@std@@@std@@6B@, ?falsename@?$numpunct@D@std@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ, ??_R4bad_array_new_length@std@@6B@, ?_Memcpy_val_from@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAXAEBV12@@Z, ??_R0?AV?$basic_filebuf@DU?$char_traits@D@std@@@std@@@8, ??__F_Static@?1???$_Immortalize_memcpy_image@V_Iostream_error_category2@std@@@std@@YAAEBV_Iostream_error_category2@1@XZ@YAXXZ, ??_R3codecvt_base@std@@8, ??$_Construct@$0A@D@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAAXD_K@Z, _TI3?AVbad_array_new_length@std@@ }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-8 }) }
cling JIT session error: Failed to materialize symbols: { (main, { ?test_stream@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z }) }
PS C:\...\visual-root>

Test 2

Here is another test which might be similar.

Official Binary Package

PS C:\...\visual-root> Write-Host 0 | root -q -e "int a; cin >> a"
0
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jun 18 2024, 04:16:09                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.39.33521.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


(basic_istream<char, std::char_traits<char> > &) @0x7ff85f104e10
PS C:\...\visual-root>

Installation From Source

PS C:\...\visual-root> Write-Host 0 | root -q -e "int a; cin >> a"
0
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jul 17 2024, 11:08:32                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.33.31630.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { ??_R4failure@ios_base@std@@6B@, ??_R1A@?0A@EA@error_category@std@@8, ?message@_Iostream_error_category2@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z, [...] }) }
IncrementalExecutor::executeFunction: symbol '__std_find_trivial_1' unresolved while linking [cling interface function]!
You are probably missing the definition of __std_find_trivial_1
Maybe you need to load the corresponding shared library?
PS C:\...\visual-root>

Questions

  • Do you know where the errors come from and how to solve them?
  • Does the version of MSVC matter: 19.39 vs 19.33 ?

Best regards,

Maybe. You can try the following:
In the core\metacling\src\CMakeLists.txt file, line 135, replace:

if(MSVC_VERSION GREATER_EQUAL 1936)

by

if(MSVC_VERSION GREATER_EQUAL 1933)

Then rebuild and let me know if it solves the problem

1 Like

Thank you very much!

The patch you suggested was applied:

PS C:\...\root> git describe
v6-32-02
PS C:\...\root> git status
Not currently on any branch.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   core/metacling/src/CMakeLists.txt

no changes added to commit (use "git add" and/or "git commit -a")
PS C:\...\root> git diff
diff --git a/core/metacling/src/CMakeLists.txt b/core/metacling/src/CMakeLists.txt
index b3ce0fa744..5136d6c8e3 100644
--- a/core/metacling/src/CMakeLists.txt
+++ b/core/metacling/src/CMakeLists.txt
@@ -132,7 +132,7 @@ if(MSVC)
       __std_terminate
       cling_runtime_internal_throwIfInvalidPointer
   )
-  if(MSVC_VERSION GREATER_EQUAL 1936)
+  if(MSVC_VERSION GREATER_EQUAL 1933)
     set(cling_exports ${cling_exports}
         __std_find_trivial_1
         __std_find_trivial_2
PS C:\...\root>

root_v6-32-02_metacling.patch.txt (1000 Bytes)

After ROOT compilation, both tests passed:

PS C:\...\visual-root> root -q 'test_stream.C(\"data.md\")'
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jul 17 2024, 13:42:12                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.33.31630.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


Processing test_stream.C("data.md")...
x: 1
PS C:\...\visual-root> Write-Host 0 | root -q -e "int a; cin >> a"
0
   ------------------------------------------------------------------
  | Welcome to ROOT 6.32.02                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Jul 17 2024, 13:42:12                         |
  | From tags/v6-32-02@v6-32-02                                      |
  | With MSVC 19.33.31630.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------


(std::basic_istream<char, std::char_traits<char> > &) @0x7ff85f104e10
PS C:\...\visual-root>
1 Like

Cool! Thanks for the feedback! I’ll make the relevant changes in ROOT

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.