[R] Problems compiling
Guido Masarotto
guido at hal.stat.unipd.it
Thu Mar 18 10:46:36 CET 1999
On Thu, Mar 18, 1999 at 08:11:33AM +0100, kjetil halvorsen wrote:
> I am (on windows) trying to compile a s-plus package, and get the following error:
>
> (from the linker) undefined references dgefa_
> dgesl_
>
> those are in Linpack.h, without the underscores. The code are fortran. What to do
> to
> get rid lof the underscores so the right symbols can be found?
>
>
Kjetil,
I have no much time to test this. But, (under Linux) I went to the
R-0.63.3/src/appl directory (where Linpack code lives) and then did a
> grep dgesl *.f
No 'dgesl' was found . Hence, my hypothesis is that 'dgesl'
is listed in Linpack.h but not included in R.
Under Windows, to understand if this is true, you should go to the
gnuwin32 directory and then do something like
> grep dgesl R.exp
or, better,
> nm libR.a | grep dgesl
[R.exp lists the symbols exported by R.dll, libR.a is the 'import
library' for R.dll]
If no dgesl is shown, I suspect that you have to
download Linpack and add the files defining dgesl and the other
function to the package source.
guido
(ps) Problem is not in the underscore, I think. The underscore
is appended by the g77 compiler, but the F77_SYMBOL declaration
in Linpack.h is there to cope with it.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list