vulkan-guide icon indicating copy to clipboard operation
vulkan-guide copied to clipboard

Compile Error in vk_mem_alloc.h with VS2019

Open John-Yi opened this issue 2 years ago • 2 comments

image Build failed in chapter3. I try to switch head file order like:https://github.com/vblanco20-1/vulkan-guide/issues/36, but it does't work.

my build environment: visual studio 2019, CMake 3.15.0 rc3, windows 10 SDK(10.0.19041.0) thanks for any help

John-Yi avatar Nov 08 '22 11:11 John-Yi

Same here in VS 2022.

Torphedo avatar Dec 03 '22 03:12 Torphedo

it seems to me that this code was written/tested with SDL version 2.0.x

grab the last 2.0.x version from github (e.g. https://github.com/libsdl-org/SDL/releases/tag/release-2.0.22) and use it in place of whatever you are using now. Should do the trick.

From chapter 3-scene onwards you will get another error, because of a missing header in vk_engine but that's another problem

cosw0t avatar Apr 30 '23 11:04 cosw0t