# Upgrade GCC to version 16

**URL:** <https://forum.codecrafters.io/t/upgrade-gcc-to-version-16/16309>\
**Category:** Feature Requests\
**Created:** [October 8, 2026, 2:49pm UTC](https://forum.codecrafters.io/t/upgrade-gcc-to-version-16/16309 "2026-10-08T14:49:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OskarSigvardsson](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/oskarsigvardsson/32/18690_2.png) [@OskarSigvardsson](https://forum.codecrafters.io/u/OskarSigvardsson)\
**Post date:** [October 8, 2026, 2:49pm UTC](https://forum.codecrafters.io/t/upgrade-gcc-to-version-16/16309/1 "2026-10-08T14:49:46Z")

</div>

Hello codecrafters! I want to play around with some of the new reflection features in C++26, and GCC version 16 has good support for it. GCC 16.2 was released in August. Any chance you could update the GCC version for the runners?

---

<div class="post-metadata">

**Author:** ![yeswanth](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yeswanth/32/27558_2.png) [@yeswanth](https://forum.codecrafters.io/u/yeswanth)\
**Post date:** [October 14, 2026, 7:10am UTC](https://forum.codecrafters.io/t/upgrade-gcc-to-version-16/16309/2 "2026-10-14T07:10:11Z")

</div>

Thanks for the suggestion @OskarSigvardsson Will update the runners in the coming week.

---

<div class="post-metadata">

**Author:** ![yeswanth](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/yeswanth/32/27558_2.png) [@yeswanth](https://forum.codecrafters.io/u/yeswanth)\
**Post date:** [October 18, 2026, 8:08am UTC](https://forum.codecrafters.io/t/upgrade-gcc-to-version-16/16309/3 "2026-10-18T08:08:55Z")

</div>

Hey @OskarSigvardsson

I’ve upgraded the [C++](https://app.codecrafters.io/tracks/cpp) runners to use GCC 16.2

To use reflection feature, you need to make two changes in `CMakeLists.txt`:

```auto
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
+set(CMAKE_CXX_STANDARD 26) # Enable the C++26 standard (needed for reflection)

file(GLOB_RECURSE SOURCE_FILES src/.cpp src/.hpp)

-add_executable(interpreter ${SOURCE_FILES})
+add_executable(interpreter ${SOURCE_FILES})
+target_compile_options(interpreter PRIVATE -freflection)

```
