From ripley at stats.ox.ac.uk  Wed Sep 20 10:02:32 2017
From: ripley at stats.ox.ac.uk (Brian Ripley)
Date: Wed, 20 Sep 2017 09:02:32 +0100
Subject: [Rd] R and Visual Studio
In-Reply-To: <trinity-cddc4f47-6b93-4b2a-a871-008b244b7b05-1505818418311@3c-app-mailcom-bs13>
References: <trinity-170edabd-6be0-4bb8-844a-b48f58def3f5-1505818344254@3c-app-mailcom-bs13>
 <trinity-cddc4f47-6b93-4b2a-a871-008b244b7b05-1505818418311@3c-app-mailcom-bs13>
Message-ID: <4A4BC300-51CB-4A47-A96F-6424EC84832F@stats.ox.ac.uk>



> On 19 Sep 2017, at 11:53, lille stor <lille.stor at gmx.com> wrote:
> 
> Hi,
> 
> I am trying to build R using Visual Studio 2010 but without success. My question is if it possible build R with this compiler anyway?

It has been done, in the distant past.  However, none of the attempts produced a build which could pass R's checks.
> 
> If not, could someone please tell how to link one's C code against both the static and shared libraries of R for Windows (that comes from the official website found here https://cran.r-project.org/mirrors.html)?

It is not too difficult to make and load a DLL with VS and even link to R internals using an import library.  Details are in the manual or linked from there (section 5.5).  (There is no static library for R on Windows.)

> 
> Thank you!
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] R and Visual Studio
Brian Ripley