I tried to run ROOT 6.19.02 on Windows 10 from Visual Studio 2019 Developer Command Prompt but I got the following message:
input_line_1:1:10: fatal error: ‘new’ file not found #include
^~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\V\6-20\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139
After this, the ROOT does not start. Could you help me to solve this problem?
This is most probably due to different versions of Visual Studio (and/or Windows 10 SDK) between the one installed on your system and the one used to build ROOT. While we will work to get rid of this limitation, I think the only solution would be to build ROOT from source
There are several topics you can find on this forum, for example:
You need CMake (latest version), and then you can:
Unzip the source tar file in a directory not containing any space
Open a x86 Native Tools Command Prompt for VS 2019!!!And NOT a x64 one!!!
Create a build directory of your choice and cd into it
Then configure ROOT with: cmake -G "Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_STANDARD=14 [path to source]
Then, if there was no error, build ROOT: cmake --build . --config Debug
Note that if you need more options, you can open a cmake-gui where you can select the different options before building ROOT (be aware that all of them are not supported on Windows)