# Cannot open file glfw3.lib when building for x64

**URL:** <https://discourse.glfw.org/t/cannot-open-file-glfw3-lib-when-building-for-x64/1612>\
**Category:** support\
**Created:** [July 18, 2020, 4:23pm UTC](https://discourse.glfw.org/t/cannot-open-file-glfw3-lib-when-building-for-x64/1612 "2020-07-18T16:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnratius](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/johnratius/32/384_2.png) [@johnratius](https://discourse.glfw.org/u/johnratius)\
**Post date:** [July 18, 2020, 4:23pm UTC](https://discourse.glfw.org/t/cannot-open-file-glfw3-lib-when-building-for-x64/1612/1 "2020-07-18T16:23:54Z")

</div>

I tried to build my project for x64 and x32 for Visual Studio 2019. My x32 builds and runs fine but I get `LINK : fatal error LNK1104: cannot open file 'glfw3.lib'` error when I try to build for x64. I made sure that the x64 has only x64 files, and x32 has x32 files. Any reason why this is happening?

EDIT: I included the includes folder in my library directory instead of the library directory.

---

<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:** [July 18, 2020, 4:38pm UTC](https://discourse.glfw.org/t/cannot-open-file-glfw3-lib-when-building-for-x64/1612/2 "2020-07-18T16:38:31Z")

</div>

This error is normally generated when it can’t find the library in any of your specified library paths - make sure you have these set up correctly.

You can find the library paths in the projects property pages under Linked-\>General-\>Additional Library Directories.

---

<div class="post-metadata">

**Author:** ![johnratius](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/johnratius/32/384_2.png) [@johnratius](https://discourse.glfw.org/u/johnratius)\
**Post date:** [July 18, 2020, 4:40pm UTC](https://discourse.glfw.org/t/cannot-open-file-glfw3-lib-when-building-for-x64/1612/3 "2020-07-18T16:40:28Z")

</div>

Yeah I included the wrong lib directory and now it’s working. Thanks.
