# Compilers that do not support bool are not supported

**URL:** <https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237>\
**Category:** Engineering\
**Tags:** cmake\
**Created:** [August 30, 2018, 4:38pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237 "2018-08-30T16:38:21Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![mihail.isakov](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)\
**Post date:** [September 10, 2018, 4:42pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/21 "2018-09-10T16:42:18Z")

</div>

Sorry, i can only guess, may be i am wrong, From logs i saw issues happen with C++, C seems to work.  
May be this is applicable:

[https://developercommunity.visualstudio.com/content/problem/254351/visual-studio-build-tools-2017-1571-missing-visual.html](https://developercommunity.visualstudio.com/content/problem/254351/visual-studio-build-tools-2017-1571-missing-visual.html)

---

<div class="post-metadata">

**Author:** ![mihail.isakov](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)\
**Post date:** [September 10, 2018, 4:53pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/22 "2018-09-10T16:53:21Z")

</div>

one more link (may be related, may be not, oh)

> <https://stackoverflow.com/questions/42701019/problems-generating-solution-for-vs-2017-with-cmake>

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [September 10, 2018, 9:10pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/23 "2018-09-10T21:10:43Z")

</div>

With a fresh install of Win10, ITK 4.13.1 and VS 2017.8.3 I can configure ITK normally.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 11, 2018, 1:08am UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/24 "2018-09-11T01:08:51Z")

</div>

As @mihail.isakov suggested, make sure that the Visual Studio install includes

- MSBuild
- Visual Studio C++ Support
- The Windows SDK

---

<div class="post-metadata">

**Author:** ![Tom\_Hampshire](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Post date:** [September 11, 2018, 1:48pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/25 "2018-09-11T13:48:26Z")

</div>

I have these installed:

 ![image](https://discourse.itk.org/uploads/default/original/1X/d9a943b194fcfdead4e15580acd50a60b3147182.png)

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [September 11, 2018, 2:39pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/26 "2018-09-11T14:39:58Z")

</div>

Only a small fraction of that is needed. This is what I have.

 ![27](https://discourse.itk.org/uploads/default/original/1X/a6a294186f3a57b50305afff6d93e680beb7134f.png)

---

<div class="post-metadata">

**Author:** ![Tom\_Hampshire](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Post date:** [September 11, 2018, 2:49pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/27 "2018-09-11T14:49:36Z")

</div>

I’m still having trouble compiling, so I just installed everything to check if there wasn’t something I was missing out… Still no joy

---

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [September 11, 2018, 2:52pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/28 "2018-09-11T14:52:23Z")

</div>

Do you have `Desktop development with C++`? That is kind of the main thing and I don’t see it on your list. `Visual Studio C++ core features` is probably it, but it will not hurt if you select `Desktop` as well.

---

<div class="post-metadata">

**Author:** ![Tom\_Hampshire](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Post date:** [September 11, 2018, 8:25pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/29 "2018-09-11T20:25:40Z")

</div>

This time around I didn’t install the desktop tools (IDE, etc), I’m just using the command line / build toolchain.

I’ve managed to _almost_ build ITK using MinGW64. Unfortunately, libTIFF will not compile otherwise everything else compiles successfully. There’s definitely something weird going on with VS, although no combination of installed tools seems to be helping at all. I’ve even tried using different versions of the toolchain specified with `vcvarsall` but still with no success ☹

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 11, 2018, 9:24pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/30 "2018-09-11T21:24:09Z")

</div>

Sorry this build has been so difficult, @Tom_Hampshire. Your persistence is impressive! 😣

There is something odd going on; if we let it rest and come back later, maybe it will reveal itself.

In the meantime, we can fix up the MinGW64 build and run with it.

I started a local build…

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 12, 2018, 3:20am UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/31 "2018-09-12T03:20:14Z")

</div>

Here is [a patch](http://review.source.kitware.com/#/c/23702/) for the libtiff build issue.

---

<div class="post-metadata">

**Author:** ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)\
**Post date:** [September 12, 2018, 1:04pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/32 "2018-09-12T13:04:46Z")

</div>

I think we encountered this error when trying to compile on windows with R’s mingw toolchain.

Please consider applying this to the 4.13 legacy branch as well.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 14, 2018, 4:35pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/33 "2018-09-14T16:35:46Z")

</div>

This patch is now available in both `ITK` `master` and `release-4.13` branches.

---

<div class="post-metadata">

**Author:** ![Tom\_Hampshire](https://discourse.itk.org/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@Tom\_Hampshire](https://discourse.itk.org/u/Tom_Hampshire)\
**Post date:** [September 20, 2018, 1:49pm UTC](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237/34 "2018-09-20T13:49:41Z")

</div>

Thanks for all your help. I’ve got everything compiled and running successfully!!

[Previous page](https://discourse.itk.org/t/compilers-that-do-not-support-bool-are-not-supported/1237.md?page=1)
