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:
one more link (may be related, may be not, oh)
With a fresh install of Win10, ITK 4.13.1 and VS 2017.8.3 I can configure ITK normally.
As @mihail.isakov suggested, make sure that the Visual Studio install includes
- MSBuild
- Visual Studio C++ Support
- The Windows SDK
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
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.
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 
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…
Here is a patch for the libtiff build issue.
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.
This patch is now available in both ITK master and release-4.13 branches.
Thanks for all your help. I’ve got everything compiled and running successfully!!

