From a5f592dc5c1fec367bede3389775b067dd56fb01 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Sun, 26 May 2024 23:15:34 +0300 Subject: [PATCH] Fixed linker error specifically on windows The error here is that when forward referencing a struct/class what matters is whether the entity actually is a struct or a class. For example, this is what the definitions look like if the entity is: a class: ?Init@SimpleDrawable@Scene@OpenVulkano@@QEAAXPEAVShader@23@PEAVGeometry@23@PEAVMaterial@23@@Z a struct: ?Init@SimpleDrawable@Scene@OpenVulkano@@QEAAXPEAVShader@23@PEAVGeometry@23@PEAUMaterial@23@@Z --- openVulkanoCpp/Scene/SimpleDrawable.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Scene/SimpleDrawable.hpp b/openVulkanoCpp/Scene/SimpleDrawable.hpp index 321eee5..559c07f 100644 --- a/openVulkanoCpp/Scene/SimpleDrawable.hpp +++ b/openVulkanoCpp/Scene/SimpleDrawable.hpp @@ -11,7 +11,7 @@ namespace OpenVulkano::Scene { class Geometry; - class Material; + struct Material; class SimpleDrawable final : public Drawable {