Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.44.0306180902440.52254-100000@homer33.u.washington.edu>
Date: 2003-06-18T16:09:10Z
From: Thomas Lumley
Subject: dyn.load()  function problem help!
In-Reply-To: <3F065418@webmail.uiuc.edu>

On Wed, 18 Jun 2003, Mu Yunming wrote:

> >
> My source code is writen in fortran 90 and i complied the source code using
> command f90. How do you think I should complie my source file and build the
> shared library?
>

You probably need to figure this out: R doesn't explicitly support F90 on
any platform.

Two things are needed
1/  You have to be able to create a DLL that is properly linked to all the
libraries it needs.  Your compiler documentation should tell you how to do
this.

2/ The functions you call from R need to use the same calling conventions
as the compilers used to compiler R.  Duncan Murdoch has information at
 http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/
that describes how to do this for various compilers. Even if your's isn't
on the list this might still be helpful

	-thomas