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-de...@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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel