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