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

2020-10-02 Thread Andreas Kersting
Thanks, that was very helpful. The C11 features I use do actually work in C99 mode, so I will stick with that. I just thought it was kind of "cleaner" to specify C11 mode when using features from that standard. 2020-09-29 16:35 GMT+02:00 "Prof Brian Ripley" : > On 28/09/2020 12:44, Andreas Kerst

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

2020-09-29 Thread Prof Brian Ripley
On 28/09/2020 12:44, Andreas Kersting 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: for some unstated value of 'work' ... * checking compilation flags

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

2020-09-28 Thread Toby Hocking
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 wrote: > Hi, > > wha