Please read tips for efficient and successful posting and posting code
ROOT Version: 6.28/00
Platform: Windows 10
Compiler: Not Provided
I managed to build cling and install root version 6.28/00 on windows 10.
Interpreting C++ code works fine. But when I try to compile a simple hello.C containing
int hello()
{
return 123;
}
I get errors like
vcruntime.h(193): error C2371: “size_t”: Neudefinition; …
I have Visual Studio 2022 community installed.
Can anyone help me?
Hi @f_stuetz,
Could you please paste here the complete error that is printed out to the terminal? @bellenot, have you seen this before?
Cheers,
J.
I’m afraid there is too little information here… Please provide exactly what you’re doing
Thanks a lot for replying! Here is a more complete copy:
root [0] .L hello.C+
Info in TWinNTSystem::ACLiC: creating shared library c:/root_v6.28.00/macros/hello_C.dll
hello_C_ACLiC_dict.cxx
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\vcruntime.h(193): error C2371: “size_t”: Neudefinition; unterschiedliche Basistypen
predefined C++ types (compiler internal)(16): note: Siehe Deklaration von “size_t”
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\xbit_ops.h(41): error C3861: “_BitScanReverse64”: Bezeichner wurde nicht gefunden.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\xbit_ops.h(69): error C3861: “_BitScanReverse64”: Bezeichner wurde nicht gefunden.
OK, thanks. Please check that you’re running ROOT in a Native Tools Command Prompt for VS 2022
that corresponds to the architecture you compiled ROOT for (e.g. x86 or x64)
1 Like