# Compiler error while building on Windows

**URL:** <https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324>\
**Category:** ROOT\
**Created:** [January 16, 2019, 10:07pm UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324 "2019-01-16T22:07:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjrob](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tjrob/32/17767_2.png) [@tjrob](https://root-forum.cern.ch/u/tjrob)\
**Post date:** [January 16, 2019, 10:07pm UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324/1 "2019-01-16T22:07:46Z")

</div>

* * *

_ROOT Version:_ root\_v6.14.06  
_Platform:_ Windows 10  
_Compiler:_ Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27025.1 for x86 (Visual Studio 2017)

* * *

(The program builds and runs **without** Root on Windows, and it builds and runs **with** Root on Mac OS X High Sierra and Scientific Linux Fermi 7.3.)

I am building G4beamline on Windows using VS2017 32-bit tools. I’m using cmake in a cmd window (see Geant4.10.05 build instructions). The message is:

> root\_v6.14.06.win32.vc15\include\root\typetraits.hxx(43): fatal error C1001: An internal error has occurred in the compiler.

Line 43 is:

> using arg\_types = typename CallableTraitsImpl\<decltype(&T::operator())\>::arg\_types;

I haven’t a clue. Any suggestions?

---

<div class="post-metadata">

**Author:** ![tjrob](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tjrob/32/17767_2.png) [@tjrob](https://root-forum.cern.ch/u/tjrob)\
**Post date:** [January 17, 2019, 12:54am UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324/2 "2019-01-17T00:54:03Z")

</div>

It just occurred to me: might I need to enable a more recent C++ standard in the build? If so, how?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 17, 2019, 8:08am UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324/3 "2019-01-17T08:08:28Z")

</div>

> [@tjrob](#):
>
> ```auto
> root_v6.14.06.win32.vc15\include\root\typetraits.hxx(43): fatal error C1001: An internal error has occurred in the compiler.
> 
> ```

See [this topic](https://root-forum.cern.ch/t/creating-root-program-with-visual-studio/31962/2)

---

<div class="post-metadata">

**Author:** ![tjrob](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tjrob/32/17767_2.png) [@tjrob](https://root-forum.cern.ch/u/tjrob)\
**Post date:** [January 17, 2019, 10:21pm UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324/4 "2019-01-17T22:21:17Z")

</div>

Thanks. Installing the older version of Visual Studio 2017 enabled me to build my program with Root. It runs fine on my build machine.

Unfortunately, there is a fundamental problem with Root on a machine without a C++ compiler or its SDK. See the other thread: [Looks like I have to abandon Root on Windows](https://root-forum.cern.ch/t/looks-like-i-have-to-abandon-root-on-windows/32339?u=tjrob)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 31, 2019, 10:33pm UTC](https://root-forum.cern.ch/t/compiler-error-while-building-on-windows/32324/5 "2019-01-31T22:33:08Z")

</div>

Closed on January 31, 2019, 10:33pm UTC

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