From 625528d02c17505e752ae63d8d23132782046807 Mon Sep 17 00:00:00 2001 From: Brad D <59133880+bedwardly-down@users.noreply.github.com> Date: Wed, 3 Jul 2024 03:05:58 -0500 Subject: [PATCH] Fix: StackAllocator Undefined Reference fix (#5650) Co-authored-by: Kim Kulling --- code/Common/StackAllocator.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/Common/StackAllocator.h b/code/Common/StackAllocator.h index a5d97c22d..fcb72a09e 100644 --- a/code/Common/StackAllocator.h +++ b/code/Common/StackAllocator.h @@ -88,6 +88,11 @@ private: } // namespace Assimp +/// @brief Fixes an undefined reference error when linking in certain build environments. +// May throw warnings about needing stdc++17, but should compile without issues on modern compilers. +inline const size_t Assimp::StackAllocator::g_maxBytesPerBlock; +inline const size_t Assimp::StackAllocator::g_startBytesPerBlock; + #include "StackAllocator.inl" #endif // include guard