# 'nullptr' error in ITK compiling

**URL:** https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888
**Category:** Engineering
**Created:** [February 22, 2021, 5:35am UTC](https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888 "2021-02-22T05:35:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zhuangming.shen](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zhuangming.shen](https://discourse.itk.org/u/zhuangming.shen)
#### Post date: [February 22, 2021, 5:35am UTC](https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888/1 "2021-02-22T05:35:20Z")

</div>

Hi all,  
When I compiled ITK-4.13.3, I met a lot of "nullptr’ errors if I enable Module\_ITKVtkGlue in cmake. The VTK version and gcc version I used is 8.2.0 and 4.8.5. It seems I missed something. Does anybody know the solution? Thanks in advance.

 ![compile_error](https://discourse.itk.org/uploads/default/original/2X/d/de0dc0a7c51b6c3bd400d4dd26263460761627b3.png)

---

<div class="post-metadata">

### Author: ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)
#### Post date: [February 22, 2021, 7:52am UTC](https://discourse.itk.org/t/nullptr-error-in-itk-compiling/3888/2 "2021-02-22T07:52:09Z")

</div>

Hi @zhuangming.shen,

You need to compile with at least C++11 capabilities to use `nullptr`. You can pass the option `CMAKE_CXX_STANDARD=11` to your CMake configuration. For details, search `compile with C++11 std cmake` (for example).
