From 4f47bccb85637f5d773ec427a8036107ebeb3320 Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Fri, 21 Jun 2024 23:58:14 +0200 Subject: [PATCH] Fix link error on MSVC Issue #166 --- .github/workflows/test-win.yml | 4 ++-- src/jlcxx.cpp | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index 3fa3272..daa9067 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -43,7 +43,7 @@ jobs: if [ -z "${package}" ]; then package="https://github.com/JuliaInterop/CxxWrap.jl.git" fi - cmake --build . --config Release + cmake --build . --config Debug julia -e "using Pkg; Pkg.Registry.add(\"General\"); Pkg.Registry.add(RegistrySpec(url = \"https://github.com/barche/CxxWrapTestRegistry.git\"))" julia -e "using Pkg; pkg\"add ${package}\"; using CxxWrap" - ctest -j 1 -C Release -V + ctest -j 1 -C Debug -V diff --git a/src/jlcxx.cpp b/src/jlcxx.cpp index f52ee86..451f0a3 100644 --- a/src/jlcxx.cpp +++ b/src/jlcxx.cpp @@ -339,6 +339,10 @@ namespace detail { } }; + + template struct JLCXX_API BasicArg; + template struct JLCXX_API BasicArg; + } #ifdef JLCXX_USE_TYPE_MAP