From murdoch at stats.uwo.ca  Fri Mar 31 14:49:43 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 31 Mar 2006 07:49:43 -0500
Subject: [Rd] Fortran and C entry point problem.
In-Reply-To: <3B862D6B11ECDE458F679DDA238A135A1D82FE@lisa>
References: <3B862D6B11ECDE458F679DDA238A135A1D82FE@lisa>
Message-ID: <442D2567.8060108@stats.uwo.ca>

You need to tell us what platform you're on, what compilers you're 
using, etc.  The details vary.

Duncan Murdoch

On 3/30/2006 10:56 PM, Steve Su wrote:
> Dear All,
> 
>  
> 
> I have seen a number of e mails on this topic but I have not seen a
> general solution to date. I have Fortran and C source codes and they
> have been compiled successfully using:
> 
>  
> 
> R CMD build mypackage
> 
>  
> 
> And
> 
>  
> 
> R CMD install mypackage
> 
>  
> 
> Without error messages. 
> 
>  
> 
> I then open R and tests out two functions and get:
> 
>  
> 
>> pgl(0.2,1,2,3,4)
> 
> Error in .C("gl_fmkl_distfunc", lambdas[1], lambdas[2], lambdas[3],
> lambdas[4],  : 
> 
>         C entry point "gl_fmkl_distfunc" not in DLL for package
> "mypackage"
> 
>> runif.sobol(10,5)
> 
> Error in .Fortran("sobol", as.double(qn), as.integer(n),
> as.integer(dimension),  : 
> 
>         Fortran entry point "sobol_" not in DLL for package "mypackage"
> 
>  
> 
>  
> 
> Alternatively running C CMD check mypackage will also pick up these
> errors when they try to run the examples.
> 
>  
> 
> I have used Fortran and C codes already available on CRAN so I am unsure
> what is the missing link to make these work?
> 
>  
> 
> Can anyone provide an explanation and procedure to over come this
> problem?
> 
>  
> 
> Thanks.
> 
>  
> 
> Steve.
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Fortran and C entry point problem.
Duncan Murdoch