[R] Fortran DLL

About this list Date view Thread view Subject view Author view Attachment view

From: Alex Randriamiharisoa (Alex.Randriamiharisoa@inst.hospvd.ch)
Date: Fri 23 May 2003 - 19:16:14 EST


Message-id: <5.1.0.14.2.20030523103432.026dee50@pop.hospvd.ch>

Dear R-users,
After the reading of "Writing R extensions", "readme.packages", "Using
external compilers with
R", ..., I have tried to create a DLL for my Fortran file using the command:

g77 --shared -o robeth.dll robeth.f

and failed with several messages as :
c:\temp/ccU8N5fb.o: ... undefined reference to 'realpr_'
c:\temp/ccU8N5fb.o: ... undefined reference to 'dblepr_'
c:\temp/ccU8N5fb.o: ... undefined reference to 'intpr_'
c:\temp/ccU8N5fb.o: ... undefined reference to 'rexit_'

What I have missed. If I insert #include <R.h> at the top of the file, the
MinGW
g77 compiler exits immediately => "undefined or invalid # directives"

I've tested on R Version 1.5.1 and 1.7.0, for windows. If a special
library is needed,
someone could send it to me by mail.
Thanks for your help.
Alex R.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:51 EST