Hi there, I’m trying to learn Vulkan and am using GLFW to draw the windows. I’m using VS 2019 and am getting some errors:
1>glfw3.lib(win32_init.obj) : error LNK2001: unresolved external symbol __imp_TranslateMessage
1>glfw3.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_TranslateMessage
1>glfw3.lib(win32_init.obj) : error LNK2001: unresolved external symbol __imp_DispatchMessageW
There’s a lot more but they’re all like this. what am I missing? I’m building 64 bit and downloaded the 64-bit binaries from the website. The tutorial I’m following is vulkan-tutorial.com
It looks like you’ve somehow removed the default libraries which are linked to by Visual Studio. These are added automatically by Visual Studio when you create a project, and you should leave them alone. Note that you’ll see the number 32
in the libraries, this is a historical artifact and does not mean they are for 32bit builds (the same named library is loaded from a different directory for 32 vs 64bits).
Your Configuration Properties
> Linker
> Input
> Additional Dependencies
should look something like:
glfw3.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib