From ripley at stats.ox.ac.uk  Fri Oct 20 10:34:31 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 20 Oct 2006 09:34:31 +0100 (BST)
Subject: [Rd] R.lib for MS Visual C++
In-Reply-To: <OF172FAACE.C4F3FFCA-ONC125720D.002B0C64-C125720D.002D505B@bayer.de>
References: <OF172FAACE.C4F3FFCA-ONC125720D.002B0C64-C125720D.002D505B@bayer.de>
Message-ID: <Pine.LNX.4.64.0610200930280.5813@gannet.stats.ox.ac.uk>

On Fri, 20 Oct 2006, juri.solodenko at bayertechnology.com wrote:

>
> Hello,
>
> I'm trying to compile a library in MS Visual C++ using R.dll.
> For that, I need R.lib for linking.
> Where can I get it?
>
> "Readme.packages" for R says: "First build the import library R.lib by lib
> /def:R.exp /out:Rdll.lib"
> But for this, I need R.exp, that is also not provided with R installation
> (Lib.exe output: LIB : fatal error LNK1104: cannot open file "R.exp")
>
> So how can I get R.lib?

It actually says:

   You may if you prefer use Visual C++ to make the DLLs (unless they use
   Fortran source!). First build the import library Rdll.lib by

         make R.exp
         lib /def:R.exp /out:Rdll.lib

in current versions of R.  (Please note what the posting guide says about 
updating *before* posting.)

-- 
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] R.lib for MS Visual C++
Prof Brian Ripley