[R-pkg-devel] use g++ instead of clang++ on Mac OS

Jan Wijffels jw|j||e|@ @end|ng |rom bno@@c@be
Thu Jan 24 16:50:51 CET 2019


Ralf,

Thank you for the input. Does that mean also using a configure script would
not work to make it use g++ instead of clang++ on Mac OS?

Jan

Jan Wijffels
Statistician
www.bnosac.be  | +32 486 611708


On Thu, 24 Jan 2019 at 16:02, Ralf Stubner <ralf.stubner using daqana.com> wrote:

> > The manual on R extensions at
> >
> https://cran.r-project.org/doc/manuals/R-exts.html#Using-C_002b_002b11-code
> > mentions that
> >
> >> It is possible to specify ‘CXX11’ to be a distinct compiler just for
> >> C++11–using packages, e.g. g++ on Solaris.
> >
> > I tried to set such a directive in my src/Makevars file but appartently
> > failed to set it correctly. How do I set in the src/Makevars such that
> the
> > compilation is done using g++ instead of clang++
>
> It is not possible to alter the compiler via src/Makevars, c.f.
> https://stat.ethz.ch/pipermail/r-package-devel/2017q4/002087.html. You
> have to use $HOME/.R/Makevars or $R_HOME/etc/Makeconf for that.
>
> Greetings
> Ralf
>
> --
> Ralf Stubner
> Senior Software Engineer / Trainer
>
> daqana GmbH
> Dortustraße 48
> 14467 Potsdam
>
> T: +49 331 23 61 93 11
> F: +49 331 23 61 93 90
> M: +49 162 20 91 196
> Mail: ralf.stubner using daqana.com
>
> Sitz: Potsdam
> Register: AG Potsdam HRB 27966
> Ust.-IdNr.: DE300072622
> Geschäftsführer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list