# Dependencies for Visual Studio 2022

**URL:** <https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617>\
**Category:** support\
**Created:** [May 2, 2024, 2:15pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617 "2024-05-02T14:15:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goofy2k](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/goofy2k/32/904_2.png) [@goofy2k](https://discourse.glfw.org/u/goofy2k)\
**Post date:** [May 2, 2024, 2:15pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617/1 "2024-05-02T14:15:02Z")

</div>

Hi, I successfully completed a walkthrough for usage of GLFW under Visual Studio 2022 presented in [https://www.youtube.com/watch?v=HzFatL3WT6g](https://www.youtube.com/watch?v=HzFatL3WT6g) . Here I used the 64-bit Windows binaries downloaded from your site. Now I want to go through the Getting Started example. I copied the code displayed there into main.cpp of the project created following the movie.

In section of your docs I read: “The C/C++ development environments in Visual Studio, Xcode and MinGW come with all necessary dependencies for compiling GLFW…” , but apparently I miss some dependencies when trying to compile. I don’t use CMAKE, but use the Visual Studio setup system. I would appreciate some hints on which dependencies to install and how. Thanks!

[EDIT]  
If I am correct, at least I miss:

#include \<glad/gl.h\>  
#include “linmath.h”

---

<div class="post-metadata">

**Author:** ![goofy2k](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/goofy2k/32/904_2.png) [@goofy2k](https://discourse.glfw.org/u/goofy2k)\
**Post date:** [May 2, 2024, 3:30pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617/2 "2024-05-02T15:30:56Z")

</div>

Solved the linmath.h issue as described in: [c++ - Cannot open include file: 'linmath.h' - Stack Overflow](https://stackoverflow.com/questions/53087464/cannot-open-include-file-linmath-h)

Still to solve: the \<glad/gl.h\> dependency

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [May 2, 2024, 3:51pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617/3 "2024-05-02T15:51:18Z")

</div>

Hi @goofy2k and welcome to the GLFW forum,

Those headers are only needed if you are compiling the examples, or if you add them to your own project.

You need to make sure that you add the path to the dependencies to your `Project` \> `Properties` \> `C/C++` \> `General` \> `Additional Include Directories`.

The dependencies should be in the `deps` folder in the GLFW download.

---

<div class="post-metadata">

**Author:** ![goofy2k](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/goofy2k/32/904_2.png) [@goofy2k](https://discourse.glfw.org/u/goofy2k)\
**Post date:** [May 2, 2024, 10:16pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617/4 "2024-05-02T22:16:20Z")

</div>

OK, I’ll give it a try…

---

<div class="post-metadata">

**Author:** ![goofy2k](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/goofy2k/32/904_2.png) [@goofy2k](https://discourse.glfw.org/u/goofy2k)\
**Post date:** [May 2, 2024, 10:36pm UTC](https://discourse.glfw.org/t/dependencies-for-visual-studio-2022/2617/5 "2024-05-02T22:36:46Z")

</div>

Got it working now! I was still using the glfw-3.4.bin.WIN64 folder from the first walkthrough. Triggered by your remark about the deps folder I started searching for another download.

Now I can continue my journey!

Thanks
