From 8846fba1fcec461c33c8649c1aef3f4e215d9513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Thor=C3=A9n?= Date: Sat, 30 Dec 2023 00:29:31 +0100 Subject: [PATCH] Fixes compilation error "ResourceSet.h:33:21: error: function 'ResourceSet::ResourceSet()' definition is marked dllimport" when building with g++ 12.1.0 --- lib/ResourceSet.cpp | 2 ++ lib/ResourceSet.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ResourceSet.cpp b/lib/ResourceSet.cpp index ab786c7fd..be8986312 100644 --- a/lib/ResourceSet.cpp +++ b/lib/ResourceSet.cpp @@ -19,6 +19,8 @@ VCMI_LIB_NAMESPACE_BEGIN +ResourceSet::ResourceSet() = default; + ResourceSet::ResourceSet(const JsonNode & node) { for(auto i = 0; i < GameConstants::RESOURCE_QUANTITY; i++) diff --git a/lib/ResourceSet.h b/lib/ResourceSet.h index ad844b230..08c145521 100644 --- a/lib/ResourceSet.h +++ b/lib/ResourceSet.h @@ -30,7 +30,7 @@ private: public: // read resources set from json. Format example: { "gold": 500, "wood":5 } DLL_LINKAGE ResourceSet(const JsonNode & node); - DLL_LINKAGE ResourceSet() = default; + DLL_LINKAGE ResourceSet(); #define scalarOperator(OPSIGN) \