# Unsupported compiler in Qt

**URL:** https://discourse.itk.org/t/unsupported-compiler-in-qt/5538
**Category:** Engineering
**Created:** [December 1, 2022, 8:04am UTC](https://discourse.itk.org/t/unsupported-compiler-in-qt/5538 "2022-12-01T08:04:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ellen-D216](https://discourse.itk.org/user_avatar/discourse.itk.org/ellen-d216/32/3083_2.png) [@Ellen-D216](https://discourse.itk.org/u/Ellen-D216)
#### Post date: [December 1, 2022, 8:04am UTC](https://discourse.itk.org/t/unsupported-compiler-in-qt/5538/1 "2022-12-01T08:04:20Z")

</div>

Hello,

I successfully built ITK5.2 libraries with gcc11, but having an issue using ITK in Qt.

I’m getting an “Unsupported compiler” error thrown by the generated include file itk\_compiler\_detection.h from this conditional (starting at line 153 in my build):

**# if ITK\_COMPILER\_IS\_GNU**  
**# include “compilers/ITK\_COMPILER\_INFO\_GNU\_CXX.h”**  
**# else**  
**# error Unsupported compiler**  
**# endif**

And I found that the macro **\_\_clang\_\_** was 1, and **\_\_GNUC\_\_** was 4. But there is nothing wrong in vscode! I do not know what happened.

---

<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: [December 1, 2022, 4:45pm UTC](https://discourse.itk.org/t/unsupported-compiler-in-qt/5538/2 "2022-12-01T16:45:26Z")

</div>

What are you trying to compile? Maybe provide the full compiler message, including notes?
