sir.nim fails for me in release mode. I have Ubuntu 16.04 with Nim devel updated right now and GCC 5.4.0. The example compiles just fine (`nim c -d:release sir.nim`), but trying to run it (`./sir`) results in `could not load: libRmath-nim.so`. The same happens with `nim c -r -d:release sir.nim`, but does not happen when I don't pass the flag `-d:release`.
How are you linking the library? What I have done is * from the distributions project, `nimble install`. This also compiles `libRmath-nim.so` * as suggested from the install step, I added `/home/papillon/.nimble/lib` to my library path (`export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/papillon/.nimble/lib`) This works fine in debug mode, but fails in release