Using glfw with D on windows?

nobody wrote on Wednesday, November 30, 2005:

Could someone post a better explanation for compiling the .libs for D on windows, I’ve tried with both digital mars’ compiler, mingw and msvc but i cant really figure it out.
I would appreciate it a lot :slight_smile:

epsilondelta wrote on Saturday, December 24, 2005:

Compiling glfw.lib for D?

Are you using the glfw.dll or the static glfw.lib? If you need to access the dll from D, you can use the Derelict library over at dsource.org (I have yet to update it for glfw 2.5, though).

If you want to use the static lib, building the glfw library with the Digital Mars C/C++ compiler is the only sane way to approach the matter. I haven’t tried compiling glfw with dmc in awhile; but the last time I did, I believe there were just a few minor changes to the source required. Once it’s compiled with dmc, it’s simple enough to use the included glfw.d to connect D with the dmc-compiled static lib.

- John