[R] dlls

Leonard assis lmassis at yahoo.com.br
Fri Apr 30 13:33:22 CEST 2004


Is there any way to compile R 1.9 Sources in VC++ ? 


[]s
Leonard Assis
Estatístico /  CONFE 7439
UIN : 41-764-523 /  Skype : lmassis /  msn : lmassis at msn.com

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Prof Brian Ripley
Sent: Friday, April 30, 2004 6:33 AM
To: Ben.Flood
Cc: 'r-help at stat.math.ethz.ch'
Subject: Re: [R] dlls

On Fri, 30 Apr 2004, Ben.Flood wrote:

> 	I am trying to run an algorithm in a large dataset and want to speed

> this process up by using C/C++ functions.  I have been attempting to 
> create a dll library using Microsoft Visual C++ in Windows and call 
> that using
> dyn.load("file.dll") but when I use is.loaded("function") I invariably 
> get FALSE.
> 	If anybody has done this and could give me more detailed
instructions 
> it would be very much appreciated,

It's a `Microsoft Visual C++ in Windows' issue, not an R issue.  I expect
you are not exporting any entry points (the default under that `system',
amazingly): readme.packages tells you how to use VC++ in detail, and there
are worked examples in the on-line complements to `S Programming'.

Do you have a very good reason to make things difficult for yourself by not
using the recommended compilers?  Just a thought ....

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list