[Rd] Specifying C Standard in Package's Makevars File

Toby Hocking tdhock5 @end|ng |rom gm@||@com
Tue Sep 29 06:57:38 CEST 2020


WRE explains for C++11 14 etc standards but I don't know about C
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-C_002b_002b11-code
BTW I believe this question would be more appropriate for R-package-devel.


On Mon, Sep 28, 2020 at 4:44 AM Andreas Kersting <r-devel using akersting.de>
wrote:

> Hi,
>
> what is the correct way to specify a C standard in a package's Makevars
> file?
>
> Building a package with e.g. PKG_CFLAGS = -std=gnu11 does work but R CMD
> check issues a warning:
>
> * checking compilation flags in Makevars ... WARNING
> Non-portable flags in variable 'PKG_CFLAGS':
>   -std=gnu11
>
> (Same for -std=c11.)
>
> Thanks! Regards,
> Andreas Kersting
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



More information about the R-devel mailing list