Re: [Rd] Compile error with gfortran-4.6

2013-06-09 Thread Simon Urbanek
On Jun 9, 2013, at 5:50 PM, Fabio Mathias Corrêa wrote: > Dear prof. Brian Ripley, > > Thanks for help! > > I compiled using the command: > > > MAKEFLAGS="FCFLAGS=-fopenmp" R CMD SHLIB hello.f90 > Obviously, that won't work. Not only are you abusing MAKEFLAGS for something that it's not des

Re: [Rd] Compile error with gfortran-4.6

2013-06-09 Thread Fabio Mathias Corrêa
Dear prof. Brian Ripley, Thanks for help! I compiled using the command: MAKEFLAGS="FCFLAGS=-fopenmp" R CMD SHLIB hello.f90 I use linux mint Maya, R 3.0.1 and gfortran 4.6.3. Thanks,           Fábio Mathias Corrêa    Universidade Estadual de Santa Cruz Departamento de Ciências Exatas e da

Re: [Rd] Compile error with gfortran-4.6

2013-06-08 Thread Prof Brian Ripley
This is not gfortran-help, but note that you are not doing this correctly. See 'Writing R Extensions' §1.2.1. The linking step needs a flag too. Beyond that, you failed to tell us your OS, and in fact there are no such versions of gfortran (4.6.0 != 4.6). The posting guide does ask you to

[Rd] Compile error with gfortran-4.6

2013-06-08 Thread Fabio Mathias Corrêa
Dears, I am writing a code in Fortran using OpenMP directives. When compiling the code in gfortran 4.4 does not occur any problem. When compiling the code in gfortran 4.6, an error message appears. In other compilers the error does not occur. A small example. ## Code in Fortran        subr