# The \_WIN32\_WINNT value does not match NTDDI\_VERSION

**URL:** <https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790>\
**Category:** The Toolbox\
**Created:** [November 3, 2015, 4:02pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790 "2015-11-03T16:02:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 3, 2015, 4:02pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/1 "2015-11-03T16:02:45Z")

</div>

Hello guys,

I’ve been trying to compile the CDDA sources but I keep running into the same problem. Building with ‘make’ didn’t give me a specific source, but building with codeblocks gave me this snippet:

```auto
#ifdef NTDDI_VERSION
# ifdef _WIN32_WINNT
# if _WIN32_WINNT != OSVER(NTDDI_VERSION)
# error The _WIN32_WINNT value does not match NTDDI_VERSION
# endif
# else
# define _WIN32_WINNT WINNTVER(NTDDI_VERSION)
# ifndef WINVER
# define WINVER _WIN32_WINNT
# endif
# endif
#endif
```

Which is located in \mingw\include\sdkddkver.h (presumably some compiler libraray?).  
Googling the problem yielded 2 pages with only 2 good results, both of which don’t solve the problem. I’m at a loss, so I thought about asking here. First of all I’d like to know how to solve this problem. Second, I’d like to know what this check is actually doing, if that’s possible?

I thought about asking here before going to stack overflow, since I’m having the problem when compiling CDDA. I’m not sure if the 2 are really related though.

---

<div class="post-metadata">

**Author:** ![vache](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@vache](https://discourse.cataclysmdda.org/u/vache)\
**Post date:** [November 3, 2015, 4:28pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/2 "2015-11-03T16:28:25Z")

</div>

What version of MinGW are you using?

---

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 3, 2015, 4:56pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/3 "2015-11-03T16:56:53Z")

</div>

version 20130072300. That’s the version the installer GUI shows for mingw-developer-toolkit. The g++ version is 4.8.1-4

---

<div class="post-metadata">

**Author:** ![vache](https://avatars.discourse-cdn.com/v4/letter/v/ea666f/32.png) [@vache](https://discourse.cataclysmdda.org/u/vache)\
**Post date:** [November 3, 2015, 5:08pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/4 "2015-11-03T17:08:04Z")

</div>

I think the game requires 4.9 minimum now.

---

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 3, 2015, 5:13pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/5 "2015-11-03T17:13:10Z")

</div>

I thought something weird was happening. I can’t mark the g++ for update. I already installed a fresh toolchain with msys2 but I can’t seem to make codeblocks use the right one. I’m looking into that now.

---

<div class="post-metadata">

**Author:** ![Godworrior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/godworrior/32/2567_2.png) [@Godworrior](https://discourse.cataclysmdda.org/u/Godworrior)\
**Post date:** [November 3, 2015, 5:38pm UTC](https://discourse.cataclysmdda.org/t/the-win32-winnt-value-does-not-match-ntddi-version/10790/6 "2015-11-03T17:38:19Z")

</div>

Looks like the mingw distro from their site only comes with 4.8.1-4; I found the answer here: [http://stackoverflow.com/questions/24092644/how-to-install-g-4-9-on-windows](http://stackoverflow.com/questions/24092644/how-to-install-g-4-9-on-windows)
