From simon.urbanek at r-project.org  Mon Jun 10 01:43:47 2013
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Sun, 9 Jun 2013 19:43:47 -0400
Subject: [Rd] Compile error with gfortran-4.6
In-Reply-To: <1370814602.14747.YahooMailNeo@web120803.mail.ne1.yahoo.com>
References: <1370814602.14747.YahooMailNeo@web120803.mail.ne1.yahoo.com>
Message-ID: <73C134D1-18EE-42AB-9A65-2A06F364107E@r-project.org>

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 designed to (please consider reading the manual and set the proper PKG_* flags instead), but you fail to link with openmp. Also even if you link properly, depending on the runtime you may need R configured with openmp support as well. Again, please read the manual about how to use the proper *_OPENMP_* flags (go figure, the section mentioning all this is even named "OpenMP support" ;)).

Cheers,
S



> 
> 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 Terra - DCET
> Campus Soane Nazar? de Andrade, km 16 Rodovia Ilh?us-Itabuna
> CEP 45662-900. Ilh?us-Bahia
> 
> 
> Tel.: 73-3680-5076
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Compile error with gfortran-4.6
Simon Urbanek