Root 6.14.4 startup problem


ROOT Version: 6.14/04
Platform: win7-64
Compiler: MSVC 2017 (15.5.6)


Seeing the exact same problem as here. It has been closed without any conclusion.

RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
RegQueryValueEx: returned 2: The system cannot find the file specified.
RegOpenKeyEx: returned 2: The system cannot find the file specified.
In file included from input_line_3:39:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2017\Profes
sional\VC\Tools\MSVC\14.12.25827\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.
0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\corecrt.h:131:1
2: 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:1
2: 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\Profes
sional\VC\Tools\MSVC\14.12.25827\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.
0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\corecrt.h:488:1
6: 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:1
6: 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\Profes
sional\VC\Tools\MSVC\14.12.25827\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.
0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\corecrt.h:495:1
6: 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:1
6: 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\Profes
sional\VC\Tools\MSVC\14.12.25827\include\cassert:4:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.
0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\corecrt.h:503:1
6: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\corecrt.h:503:1
6: note: previous definition is here
typedef struct _Mbstatet
               ^
   ------------------------------------------------------------
  | Welcome to ROOT 6.14/04                http://root.cern.ch |
  |                               (c) 1995-2018, The ROOT Team |
  | Built for win32                                            |
  | From tags/v6-14-04@v6-14-04, Aug 23 2018, 17:00:44         |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

Hi,

It looks like a conflict between different Windows SDK versions (10.0.16299.0 and 10.0.17134.0):

Can you check which version(s) you have on your system?

Cheers, Bertrand.

Hi,
I’ve got 10.0.10240.0 and 10.0.16299.0

OK, so it’s the origin of the problem. We’ll try to get rid of this versioning problem in the future, but there is no other solution, for the time being, than installing the exact same version of Visual Studio than the one used to build ROOT (15.7.5), or building from source with your own version of Visual Studio…

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