# ITK Installation error: "ptrdiff\_t"

**URL:** https://discourse.itk.org/t/itk-installation-error-ptrdiff-t/5118
**Category:** Beginner Questions
**Created:** [June 21, 2022, 6:53pm UTC](https://discourse.itk.org/t/itk-installation-error-ptrdiff-t/5118 "2022-06-21T18:53:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chlee](https://discourse.itk.org/user_avatar/discourse.itk.org/chlee/32/3788_2.png) [@chlee](https://discourse.itk.org/u/chlee)
#### Post date: [June 21, 2022, 6:53pm UTC](https://discourse.itk.org/t/itk-installation-error-ptrdiff-t/5118/1 "2022-06-21T18:53:44Z")

</div>

I am a beginner and I am following the ITK Software guide: [https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.2.1/InsightSoftwareGuide-Book1-5.2.1.pdf](https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.2.1/InsightSoftwareGuide-Book1-5.2.1.pdf)

Unfortunately, after setting up CMake and generating the configuration, and typing `make`, I get the following error:

```auto
Consolidate compiler generated dependencies of target ITKCommon
[29%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/__/itkBuildInformation.cxx.o
[29%] Building CXX object Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkTotalProgressReporter.cxx.o
In file included from /n/scratch3/users/c/cl266/ITK/Modules/Core/Common/include/itkImageRegion.h:33:0,
                 from /n/scratch3/users/c/cl266/ITK/Modules/Core/Common/include/itkMultiThreaderBase.h:35,
                 from /n/scratch3/users/c/cl266/ITK/Modules/Core/Common/src/itkTotalProgressReporter.cxx:19:
/n/scratch3/users/c/cl266/ITK/Modules/Core/Common/include/itkSize.h:242:27: error: ‘ptrdiff_t’ does not name a type
   using difference_type = ptrdiff_t;
                           ^ ~~~~~~~~
make[2]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/itkTotalProgressReporter.cxx.o] Error 1
make[1]: *** [Modules/Core/Common/src/CMakeFiles/ITKCommon.dir/all] Error 2
make: *** [all] Error 2

```

Could anyone help me out for this?

---

<div class="post-metadata">

### Author: ![chlee](https://discourse.itk.org/user_avatar/discourse.itk.org/chlee/32/3788_2.png) [@chlee](https://discourse.itk.org/u/chlee)
#### Post date: [June 21, 2022, 7:59pm UTC](https://discourse.itk.org/t/itk-installation-error-ptrdiff-t/5118/2 "2022-06-21T19:59:29Z")

</div>

It looks like the C compiler version was the culprit, by choosing the correct compiler and re-configuring with CMake made it further!
