[Rd] Antwort: Re: R.lib for MS Visual C++
juri.solodenko at bayertechnology.com
juri.solodenko at bayertechnology.com
Fri Oct 20 11:34:01 CEST 2006
Dear Prof. Ripley,
thanks for your prompt answer.
But under MS Visual Studio there is no make utility (nmake is used to link C++
projects from makefiles).
So is it possible to create R.lib with MS Visual Studio or should I install some
other compiler for that (gnuwin?)?
Best Regards,
Juri
Prof Brian Ripley
<ripley at stats.ox.ac
.uk> An
juri.solodenko at bayertechnology.com
20.10.2006 10:34 Kopie
r-devel at r-project.org
Thema
Re: [Rd] R.lib for MS Visual C++
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
More information about the R-devel
mailing list