# Using glfw with D on windows?

**URL:** <https://discourse.glfw.org/t/using-glfw-with-d-on-windows/368>\
**Category:** support\
**Created:** [November 30, 2005, 8:43pm UTC](https://discourse.glfw.org/t/using-glfw-with-d-on-windows/368 "2005-11-30T20:43:36Z")\
**Posts on this page:** 2\
**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:** [November 30, 2005, 8:43pm UTC](https://discourse.glfw.org/t/using-glfw-with-d-on-windows/368/1 "2005-11-30T20:43:36Z")

</div>

**nobody** wrote on [Wednesday, November 30, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/6d0a655e/#0fb0):

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 🙂

---

<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:** [December 24, 2005, 7:41am UTC](https://discourse.glfw.org/t/using-glfw-with-d-on-windows/368/2 "2005-12-24T07:41:53Z")

</div>

**[epsilondelta](https://sourceforge.net/u/epsilondelta/)** wrote on [Saturday, December 24, 2005](https://sourceforge.net/p/glfw/discussion/247562/thread/6d0a655e/#0fb0/47b5):

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](http://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
