Re: [R-pkg-devel] CXX_VISIBILITY on macOS

2023-10-08 Thread Matthias Gondan
You found the problem, thanks! Matthias, this has nothing to do with R, but rather your code. You have the wrong order of headers: the SWI headers mess up visibility macros, so you have to include them *after* Rcpp.h. Cheers, Simon [[alternative HTML version deleted]]

Re: [R-pkg-devel] CXX_VISIBILITY on macOS

2023-10-08 Thread Simon Urbanek
Matthias, this has nothing to do with R, but rather your code. You have the wrong order of headers: the SWI headers mess up visibility macros, so you have to include them *after* Rcpp.h. Cheers, Simon > On 9/10/2023, at 8:41 AM, Matthias Gondan wrote: > > Dear developers and CRAN people, >

[R-pkg-devel] CXX_VISIBILITY on macOS

2023-10-08 Thread Matthias Gondan
Dear developers and CRAN people, I get some linker warnings on the macOS build server, ld: warning: direct access in function '…' from file '…' to global weak symbol '…' from file '…' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units be