I have installed a more recent compiler and would like to use the
-std=c++11 flag instead of the -std=c++0x.
system('g++ --version')
truncated... 5.2.0
I have a Makevars.win file where I initially set the CXX_STD=CXX11 however
this uses the default C++11 flag returned from R CMD config CXX1XSTD (
On 10 November 2015 at 10:00, Charles Determan wrote:
| I have installed a more recent compiler and would like to use the -std=c++11
| flag instead of the -std=c++0x.
|
| system('g++ --version')
| truncated... 5.2.0
|
| I have a Makevars.win file where I initially set the CXX_STD=CXX11 however
Okay, is there a way for me to use the newer compiler for building the
package on Windows? I've tried everything I can think of and fail to get
the new one to register when building a package.
Charles
On Tue, Nov 10, 2015 at 10:16 AM, Dirk Eddelbuettel wrote:
>
> On 10 November 2015 at 10:00,
On 10 November 2015 at 10:18, Charles Determan wrote:
| Okay, is there a way for me to use the newer compiler for building the package
| on Windows? I've tried everything I can think of and fail to get the new one
| to register when building a package.
Set CXX1X in Makevars or in R's $RHOME/etc/
The most recent Rtools still uses 4.6.3 so that doesn't help here.
On Tue, Nov 10, 2015 at 10:34 AM, 覃文锋 wrote:
> You can try Rtools 3.3
>
> https://cran.r-project.org/bin/windows/Rtools/
>
> https://github.com/rwinlib/r-base
>
> http://www.stat.ucla.edu/%7Ejeroen/mingw-w64/
>
> --
>
> Okay,
On Tue, 2015-11-10 at 10:30 -0600, Dirk Eddelbuettel wrote:
> On 10 November 2015 at 10:18, Charles Determan wrote:
> | Okay, is there a way for me to use the newer compiler for building the
> package
> | on Windows? I've tried everything I can think of and fail to get the new
> one
> | to regis
The std=c++0x is not sufficient for my purposes as it doesn't support
template aliases. I have tried to set CXX1XSTD=-std=c++11 in the
Makevars.win but it doesn't appear to register. The build proceeds as if I
never set the variable. Are the any packages that accomplish this?
Charles
On Tue, N
If you try setting this flag in the Makevars.win file of your package
then it will be overridden by the site-wide Makeconf which is included
after your package-specific Makevars.win (See section 1.2.1 of R-exts)
What you need to do is set it in a personal file HOME/.R/Makevars.win
(See R-admin 6.3
Martyn,
This ultimately solved my problem. However, I also needed to set CXX1X as
R continued to try and use the 4.6.3 version. Once both CXX1X and CXX1XSTD
were set in the HOME/.R/Makevars.win file, the compilation ran successfully.
Thanks,
Charles
On Tue, Nov 10, 2015 at 10:57 AM, Martyn Plu