# Most examples don't work with 64bit build

**URL:** <https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223>\
**Category:** support\
**Created:** [April 28, 2012, 3:40am UTC](https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223 "2012-04-28T03:40:12Z")\
**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:** [April 28, 2012, 3:40am UTC](https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223/1 "2012-04-28T03:40:12Z")

</div>

**anonymous** wrote on [Saturday, April 28, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/71cb73c5/#1bd5):

Hi,

first off, I really need a 64bit version of glfwdll.a and glfw.dll (so I can  
hopefully finally succeed in getting the golang glfw binding to work under  
Windows … was a breeeeze under Linux!)

Seems like I now succeeded in compiling 64bit versions of glfwdll.a and  
glfw.dll using mingw64, MSYS and your make scripts, even though I did get a  
couple of error messages along the lines of “maincrt entry point not found,  
using default 0xsomehexnumber instead” or some such. Entry points of course  
refer to executables, in this case those in the examples directory.

And indeed, most of them don’t work! All got built however. The following  
executables work:

listmodes.exe mtbench.exe mthello.exe and particles.exe - the latter being the  
only graphical example working for me.

Now what’s the issue with the other ones? They don’t crash, they don’t report  
anything to the console… I run them, they return immediately, silently.

Is my build broken? What’s the big difference between the 4 examples that work  
and the others that don’t?

This is a fairly new, vanilla Win7 64bit installation. No crapware, everything  
up to date, UAC and Themes are off, not a lot of software installed at all,  
Nvidia GPU driver updated (GPU Caps Viewer and the likes run fine, so OpenGL  
is there).

---

<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:** [April 29, 2012, 10:37am UTC](https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223/2 "2012-04-29T10:37:12Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Sunday, April 29, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/71cb73c5/#682b):

That’s strange. I will investigate the next time I’m on 64-bit Windows.

In the meantime, please file a bug in the tracker.

---

<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:** [April 30, 2012, 1:53am UTC](https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223/3 "2012-04-30T01:53:02Z")

</div>

**anonymous** wrote on [Monday, April 30, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/71cb73c5/#48f0):

Hiya, thanks for getting back to me. Actually I was getting a couple warnings  
when doing “make win32-msys” - will open a new thread for this and hope  
someone can shed some light on this…

---

<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:** [July 3, 2012, 5:19pm UTC](https://discourse.glfw.org/t/most-examples-dont-work-with-64bit-build/223/4 "2012-07-03T17:19:48Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, July 03, 2012](https://sourceforge.net/p/glfw/discussion/247562/thread/71cb73c5/#66f9):

The failure to build 64-bit GLFW binaries with MinGW-w64 was due to bugs in  
the MinGW makefiles. Fixes for these issues are included in GLFW 2.7.6, which  
will be released shortly.
