From aleszib at gmail.com  Thu Aug  4 13:45:19 2005
From: aleszib at gmail.com (Ales Ziberna)
Date: Thu, 4 Aug 2005 13:45:19 +0200
Subject: [Rd] call fortran in R
References: <E2197479-19D7-4C89-9E0D-DF0419209387@videotron.ca><Pine.OSF.4.58.0508031659140.143402@odin.mdacc.tmc.edu>
	<a06200700bf1705775cc6@[192.168.2.3]>
Message-ID: <004f01c598e9$fee8d1c0$0100a8c0@ales>

If I understand correctly, you used
.Fortran("wrapper",....)

The problem might be that the function name ("wrapper") was changed in the 
compilation of the code! See the mail bellow for clues (a previous post on 
R-help by Duncan Murdoch)

Natalie Hawkins wrote:
> Using R 2.0.1 on Windows XP, I am getting an error
> msg:
>
> Error in .Fortran("conic", nxy = nxy, npt = npt, CP =
> cp, EP1 = ep1, EP2 = ep2,  :
>
> Fortran function name not in load table
>
> I am wondering if there is a way to see what function
> names are in the load table?  Maybe the function name
> has been altered?

You need to look at the DLL to see what name it is exporting. I believe
R would be looking for "conic_".  If your Fortran compiler doesn't
append underscores, you'll get this error.

You might want to look at this page

http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/index.html#badname

or this one

http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/fortran.html

for more help.

Duncan Murdoch



[Rd] call fortran in R
Ales Ziberna