Dear @Axel and @bellenot,
I am trying to run ROOT v6 16.00 on a Windows 10 home, with Visual Studio 2017 Community. After I installed everything, when I first type “root -l” on the terminal, this happens:
In file included from input_line_3:39:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:142:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
struct _CrtEnableIf<true, _Ty>
^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:131:12: note: previous definition is here
struct _CrtEnableIf<true, _Ty>
^
In file included from input_line_3:39:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:516:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:488:16: note: previous definition is here
typedef struct __crt_locale_data_public
^
In file included from input_line_3:39:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:523:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:495:16: note: previous definition is here
typedef struct __crt_locale_pointers
^
In file included from input_line_3:39:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt\corecrt.h:531:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:503:16: note: previous definition is here
typedef struct _Mbstatet
^
root [0]
Then I try to compile a very simple code that should only print the word “points”, but this happens:
root [0] .L points.C+
Info in <TWinNTSystem::ACLiC>: creating shared library C:/Users/Soap/Desktop/points_C.dll
"cl" is not recognized as an internal or external command operable program or batch file.
Error in <ACLiC>: Compilation failed!
First, make sure you have the version 15.7.6 of Visual Studio. Then, in order to have ACLiC working, you must start ROOT from a Visual Studio Command Prompt
Hello,
I’ve completely re-installed VS version 15.7.6.
I’ve also added a command prompt in order to open a terminal from VS. This is the message now:
Microsoft Windows [Version 10.0.17763.316]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\Soap\Desktop>root -l
In file included from input_line_3:39:
In file included from C:\Visual_Studio\VC\Tools\MSVC\14.14.26428\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:131:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
struct _CrtEnableIf<true, _Ty>
^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:131:12: note: previous definition is here
struct _CrtEnableIf<true, _Ty>
^
In file included from input_line_3:39:
In file included from C:\Visual_Studio\VC\Tools\MSVC\14.14.26428\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:488:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\stddef.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
In file included from input_line_3:39:
In file included from C:\Visual_Studio\VC\Tools\MSVC\14.14.26428\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:495:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\stddef.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
In file included from input_line_3:39:
In file included from C:\Visual_Studio\VC\Tools\MSVC\14.14.26428\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:503:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\stddef.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h' included multiple times, additional include
site here
#include <corecrt.h>
^
root [0]
I’ve some suspects on the SDK version…
The compilation gives the same error as before.