From ripley at stats.ox.ac.uk  Tue Dec  5 07:42:10 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 5 Dec 2006 06:42:10 +0000 (GMT)
Subject: [Rd] Library file for the R engine in Windows?
In-Reply-To: <004601c717ed$24e90f10$0e010a0a@headquarters.silicoinsights>
References: <004601c717ed$24e90f10$0e010a0a@headquarters.silicoinsights>
Message-ID: <Pine.LNX.4.64.0612050638370.7721@gannet.stats.ox.ac.uk>

This is discussed in README.packages: yes you do need to build an import 
library for VC++6 (don't know for sure about later versions).  The 
recommended route is to build it from the sources, but pexports.exe from 
mingw-utils can usually be used.

On Mon, 4 Dec 2006, Christos Hatzis wrote:

> Hi,
>
> I am trying to use dynamic memory allocation in the C code to be called by R
> through the .C interface.
> I have used R_alloc as explained in the Writing R Extensions and included
> the R.h header.
> The program compiles fine but fails when linking.  Obviously it needs a
> library file where R_alloc is found.
> I have tried to link by adding R.dll to list of files at the end of the link
> command but that did not work either.
>
> The S Programming book mentions that a library Rdll.lib needs to be built
> from source, but I am not sure
> if this is still the recommended route.
>
> I am using Microsoft Visual C++ Toolkit in Windows XP Pro.
> Thank you for any advice.
>
> Christos Hatzis, Ph.D.
> Nuvera Biosciences, Inc.
> 400 West Cummings Park
> Suite 5350
> Woburn, MA 01801
> Tel: 781-938-3830
> www.nuverabio.com <http://www.nuverabio.com/>
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
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



[Rd] Library file for the R engine in Windows?
Prof Brian Ripley