From c73828ec0727d5853c95f8504daac04727c7e7c1 Mon Sep 17 00:00:00 2001 From: Tomas Kalibera Date: Sat, 17 Feb 2024 17:21:36 +0100 Subject: [PATCH] Specify explicitly only the needed symbols to export from the DLL. This is safer wrt to possible naming conflicts and fixes linking on Windows using gcc 13.2, which produces weak symbols, which in turn cannot be exported from the DLL. --- src/rstanarm-win.def | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rstanarm-win.def b/src/rstanarm-win.def index 9ee9b6c97..8c5684768 100644 --- a/src/rstanarm-win.def +++ b/src/rstanarm-win.def @@ -1,3 +1,10 @@ LIBRARY rstanarm.dll EXPORTS - + _rcpp_module_boot_stan_fit4bernoulli_mod + _rcpp_module_boot_stan_fit4binomial_mod + _rcpp_module_boot_stan_fit4continuous_mod + _rcpp_module_boot_stan_fit4count_mod + _rcpp_module_boot_stan_fit4jm_mod + _rcpp_module_boot_stan_fit4lm_mod + _rcpp_module_boot_stan_fit4mvmer_mod + _rcpp_module_boot_stan_fit4polr_mod