Re: [R] Loading Fortran code with NAG subroutines

About this list Date view Thread view Subject view Author view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Thu 21 Jun 2001 - 01:07:09 EST


Message-ID: <Pine.GSO.4.31.0106201604530.18728-100000@toucan.stats>

On Wed, 20 Jun 2001, Claudio Verzilli wrote:

> Dear R-users,
>
> System specs
> R-1.2.2 under Unix Sun Solaris 2.7
> Nag Fortran library Mark 18
>
> when I try to dynload a Fortran77 code (compiled using R CMD SHLIB) which contains calls to NAG subroutines (nagsymbols) I get the following error message
>
> ld.so.1: /opt/rhome/R-1.2.2/bin/R.bin: fatal: relocation error: file /path/to/myfile.so: symbol nagsymbol_:referenced symbol not found
>
> I changed the default compilation flags in rhome/Makeconf (i.e. adding -L/path/to/nablib.so, -lnag) without success.
> Any suggestions on what might be missing?

Well, R CMD SHLIB uses R_HOME/etc/Makeconf....

Look in `Writing R Extensions' for how to do this properly, using PKG_LIBS

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:45 EST