# glfw3 build problem

**URL:** <https://discourse.glfw.org/t/glfw3-build-problem/572>\
**Category:** support\
**Created:** [June 4, 2013, 9:25pm UTC](https://discourse.glfw.org/t/glfw3-build-problem/572 "2013-06-04T21:25:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 4, 2013, 9:25pm UTC](https://discourse.glfw.org/t/glfw3-build-problem/572/1 "2013-06-04T21:25:00Z")

</div>

**[o-san](https://sourceforge.net/u/o-san/)** wrote on [Tuesday, June 04, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/3649bc88/#a033):

I get an error when trying to compile glfw3 for code blocks:

…\glfw-master\src\win32\_window.c|482|error: ‘WM\_UNICHAR’ undeclared (first use in this function)

I’ve also tried compiling with MinGW Makefiles with same result. Any help appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 4, 2013, 9:25pm UTC](https://discourse.glfw.org/t/glfw3-build-problem/572/2 "2013-06-04T21:25:34Z")

</div>

**[o-san](https://sourceforge.net/u/o-san/)** wrote on [Tuesday, June 04, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/3649bc88/#e26f):

… downloaded from [https://github.com/glfw/glfw](https://github.com/glfw/glfw)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 4, 2013, 11:27pm UTC](https://discourse.glfw.org/t/glfw3-build-problem/572/3 "2013-06-04T23:27:50Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, June 04, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/3649bc88/#6d06):

Your toolchain must be very old.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [June 5, 2013, 3:38pm UTC](https://discourse.glfw.org/t/glfw3-build-problem/572/4 "2013-06-05T15:38:51Z")

</div>

**[o-san](https://sourceforge.net/u/o-san/)** wrote on [Wednesday, June 05, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/3649bc88/#07fe):

I looked over my toolchain and managed to clear it out. Turns out I was using an older MinGW without noticing it. Thanks! =)
