How do I use Vulkan with MinGW? (R_X86_64_32 error)
<p>I am trying to setup a bare bones program to use Vulkan. I installed the LunarG SDK. I have a tiny program that basically just calls <code>vkCreateInstance</code>. I compiled with this line:</p>

<pre><code>g++ -std=c++11 -I/c/VulkanSDK/1.0.3.1/Include -L/c/VulkanSDK/1.0.3.1/Bin main.cpp -lvulkan-1
</code></pre>

<p>I get this compiler error using 64-bit mingw (MSYS2):</p>

<pre><code> relocation truncated to fit||R_X86_64_32 against symbol `__imp_vkCreateInstance' defined in .idata$5 section in C:\VulkanSDK\1.0.3.1\Bin/vulkan-1.lib(vulkan-1.dll.b)|
</code></pre>

<p>What do I do? Am I linking against the right library?</p>