[R-sig-dyn-mod] Problem with loading compiled code into R

Hagens, M. (Mathilde) M.Hagens at uu.nl
Thu Apr 13 20:46:34 CEST 2017


Hi all,

Thank you for sharing these files Thomas. I could run your example without problem, leading me to dig into the C code again. It turned out that I got it up and running on both Mac and Linux after declaring one of my routines in C as ‘void’ rather than ‘inline void’. However, it still leaves me completely puzzled why the previous version of my code did work on the Linux server (I have again checked that this is the case). In any case, I learned a lot about compiler flags through this process. Thanks everyone for the input.

Mathilde

> On 12 Apr 2017, at 13:46, Thomas Petzoldt <thomas.petzoldt at tu-dresden.de> wrote:
> 
> Hi,
> 
> many thanks to Tim for the detailed answer and to Mathilde for further clarification.
> 
> Just for the record, in addition to the CRAN tests we tested deSolve 1.14 with CLANG and a "user-compiled" model (see attachment):
> 
> - on Ubuntu 16.04 (R-devel) and
> 
> - macOS 10.12.4 (R 3.3.2)
>   (on the laptop of our master student Felix)
> 
> The example compiled, loaded and worked flawlessly without any problems.
> 
> Thomas
> 
> 
> 
> <lorenz_test_c.R><lorenzc.c>_______________________________________________
> R-sig-dynamic-models mailing list
> R-sig-dynamic-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models



More information about the R-sig-dynamic-models mailing list