# GCC 8.1

**URL:** <https://discourse.itk.org/t/gcc-8-1/1004>\
**Category:** Engineering\
**Created:** [June 14, 2018, 5:50pm UTC](https://discourse.itk.org/t/gcc-8-1/1004 "2018-06-14T17:50:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmaarrfk](https://discourse.itk.org/user_avatar/discourse.itk.org/hmaarrfk/32/376_2.png) [@hmaarrfk](https://discourse.itk.org/u/hmaarrfk)\
**Post date:** [June 14, 2018, 5:50pm UTC](https://discourse.itk.org/t/gcc-8-1/1004/1 "2018-06-14T17:50:21Z")

</div>

Would it be possible to add a definition to the file

`ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h`  
to support GCC 8.1

It was pretty easy to fix manually, and the build seems to have succeeded with my small hack

```auto
+ 89 # elif ( __GNUC__ ==8)                                                                                
+ 90 # define VCL_GCC_8                                                                                 
+ 91 # if ( __GNUC_MINOR__ > 2 )                                                                         
+ 92 # define VCL_GCC_83                                                                               
+ 93 # elif ( __GNUC_MINOR__ > 1 )                                                                       
+ 94 # define VCL_GCC_82                                                                               
+ 95 # elif ( __GNUC_MINOR__ > 0 )                                                                       
+ 96 # define VCL_GCC_81                                                                               
+ 97 # else                                                                                             
+ 98 # define VCL_GCC_80
+ 99 # endif

```

---

<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:** [June 14, 2018, 6:12pm UTC](https://discourse.itk.org/t/gcc-8-1/1004/2 "2018-06-14T18:12:48Z")

</div>

Hello @hmaarrfk,

This is available in the ITK `master` and `release` branches.

```auto
git clone https://github.com/InsightSoftwareConsortium/ITK.git

```

HTH,  
Matt

---

<div class="post-metadata">

**Author:** ![hmaarrfk](https://discourse.itk.org/user_avatar/discourse.itk.org/hmaarrfk/32/376_2.png) [@hmaarrfk](https://discourse.itk.org/u/hmaarrfk)\
**Post date:** [June 14, 2018, 8:49pm UTC](https://discourse.itk.org/t/gcc-8-1/1004/3 "2018-06-14T20:49:31Z")

</div>

Sorry, I guess it something that SimpleElastix should change then.

Thanks!
