From d0b4aa97d5389adc6a4c87f5704503b8bb22441e Mon Sep 17 00:00:00 2001 From: Rob Hughes Date: Wed, 9 Feb 2022 11:24:25 +0000 Subject: Fix some build failures * Add ARMNN_DLLEXPORT to static symbol that needs to be exported from armnn * Add missing header for std::iota Change-Id: Ica0211ed0065e9723bcb8e9dff511acb4ea50288 Signed-off-by: Rob Hughes --- src/armnn/Layer.hpp | 3 ++- src/armnn/test/SubgraphViewTests.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/armnn/Layer.hpp b/src/armnn/Layer.hpp index 23561cb75e..114d69c652 100644 --- a/src/armnn/Layer.hpp +++ b/src/armnn/Layer.hpp @@ -13,6 +13,7 @@ #include #include "InternalTypes.hpp" #include "SerializeLayerParameters.hpp" +#include "DllExport.hpp" #include #include @@ -434,7 +435,7 @@ private: /// returned by layers which have no parameters associated with them. /// has to be a member as it is returned as a const reference /// declared static so that there is only ever one of them in memory - static NullDescriptor m_NullDescriptor; + ARMNN_DLLEXPORT static NullDescriptor m_NullDescriptor; }; // A layer user-provided data can be bound to (e.g. inputs, outputs). diff --git a/src/armnn/test/SubgraphViewTests.cpp b/src/armnn/test/SubgraphViewTests.cpp index e8012b575c..212ae0ee01 100644 --- a/src/armnn/test/SubgraphViewTests.cpp +++ b/src/armnn/test/SubgraphViewTests.cpp @@ -18,6 +18,7 @@ #include #include #include +#include using namespace armnn; -- cgit v1.2.1