PacktPublishing / Vulkan-Cookbook

Code repository for Vulkan Cookbook by Packt
MIT License
816 stars 109 forks source link

Build failed in Visual Studio Community 2017 #2

Closed HugoOsornio closed 7 years ago

HugoOsornio commented 7 years ago

Hello

I am facing the following issue when compiling the samples on VS2017 Community

library\common files\VulkanDestroyer.h(384): error C2910: 'VulkanCookbook::VkDestroyer::Destroy': cannot be explicitly specialized

Ekzuzy commented 7 years ago

Thanks for the info. I will download VS2017 and check the problem.

Ekzuzy commented 7 years ago

Hi.

Could You provide selected SDK version and Platform Toolset settings used during compilation? I've just installed Visual Studio Community 2017 and compiled all the projects without any errors. I've checked all combinations of both VS2017 (v141) and VS2015 (v140) Platform Toolsets and both 8.1 and 10.0.15063.0 Windows SDKs. And I cannot reproduce Your problem.

HugoOsornio commented 7 years ago

Hello,

Sure I will provide the details on Monday. Thanks for looking into it!

HugoOsornio commented 7 years ago

Hello again.

Attached is the image of my toolset.

vulkanerror

I used cmake to create the project files. Later I will use the .bat file to see if it made a difference.

Cheers, Hugo

HugoOsornio commented 7 years ago

Hello

It compiles now. I had to configure it to use the 64 bit version. On cmake the user needs to make sure to use the "Visual Studio 15 2017 Win64" option.

I will close the issue now and thanks a lot for your time.

Ekzuzy commented 7 years ago

Thanks for the info. It's good to know everything works fine now :-).