_ROOT gives this error when I try to start it:
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.
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-18\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139
_
ROOT Version: root_v6.18.02.win32.vc16 Platform: Windows 10, Visual Studio 2019 Compiler: root_v6.18.02.win32.vc16
That’s weird, I fixed this error message a while ago… Which version of Visual Studio do you have? Did you start from a x86 Native Tools Command Prompt for VS 2019?
I have Visual Studio 2019, and I try to start root from the command prompt. I go to the root folder on my hard drive and type “root” to start the session.
Which command prompt? The one from Visual Studio? Or the one from Windows? As I said, if it’s not already the case, please try with a x86 Native Tools Command Prompt for VS 2019
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>root
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.
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-22\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 148