Anybody got the glut_example.nim working on windows?
I am using Nim 0.12.1(i386) with mingw64-32bit/MSVC2010-32bit and am using it on windows vista 64-bit and windows 7 64-bit. I am compiling for 32-bit.
The code compiles successfully on both compilers, but the resulting application always throws a segfault. I tried it with the following precompiled binaries:
With the glut-3.7.6-bin binary and compiling with MSVC, I get an error:
Traceback (most recent call last)
glut_example.nim(91) glut_example
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Also tried the trick given here: http://forum.nim-lang.org/t/917/1 but the error does not change.
With the freeglut MSVC binary the result is the same.
Also tried compiling glut 3.7.6 with mingw64 with these instructions: http://www.mingw.org/wiki/HOWTO_Compile_the_OpenGL_Utility_Toolkit_GLUT_for_Win32_with_MinGW
The library compiles, but when using it with the mingw64 compiled application, it throws:
could not load library: glut32.dll
Any help would be appreciated.