[Rd] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
Hi, I created a R library that uses a Fortran module. Everything works like a charm on linux. Now I'm trying to make it work on Windows. I cloned my git repository https://github.com/ignacio82/MyPi on a windows computer, and when I press the build and reload button on Rstudio I get these errors:

Re: [Rd] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Kevin Ushey
You should be able to set PKG_FCFLAGS=-fno-stack-protector when compiling to ensure that the stack protector is not used. (Trying that out on a Windows VM, with a simple `R CMD build` + `R CMD INSTALL`, compilation of your package succeeded but linking failed saying the DLL 'Fpi' was not found; I

Re: [Rd] R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'

2015-07-27 Thread Ignacio Martinez
Thanks, I just got the answer on stackoverflow!! http://stackoverflow.com/questions/31638934/r-package-with-fortran-module-on-windows-undefined-reference-to-stack-chk-fa#31661475 On Mon, Jul 27, 2015 at 3:12 PM Kevin Ushey kevinus...@gmail.com wrote: You should be able to set