From fc5b53a4566af54afd333ed79fa5dec6ecc505f2 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Fri, 30 Dec 2022 00:01:10 -0400 Subject: [PATCH] macOS: work around linking issues when building the app executable. --- src/love.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/love.cpp b/src/love.cpp index c8af8596a..dbb6120f9 100644 --- a/src/love.cpp +++ b/src/love.cpp @@ -65,6 +65,11 @@ LOVE_EXPORT DWORD AmdPowerXpressRequestHighPerformance = 1; #include +// Explicitly instantiate std::vector to work around linker issues +// with libc++ when symbols are hidden-by-default. +// https://stackoverflow.com/a/48273604 +template class std::vector; + static void get_app_arguments(int argc, char **argv, int &new_argc, char **&new_argv) { std::vector temp_argv;