Cannot open file glfw3.lib when building for x64

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.

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.

1 Like

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

1 Like