Skip to content

[R-pkg-devel] Tracking down inconsistent errors and notes across operating systems

2 messages · Bill Dunlap, iuke-tier@ey m@iii@g oii uiow@@edu

#
A small example of the problem is

#define USE_RINTERNALS 1
#include <R.h>
#include <Rinternals.h>
#include <Rdefines.h>
static s_object* obj = NULL;

Prior to 2021-07-20, with svn 80639, this compiled but after, svn 80647,
that I get

$ gcc -I"/mnt/c/R/R-svn/trunk/src/include" -I.   -I/usr/local/include
-fpic  -g -O2 -flto -c s_object.c 2>&1
In file included from s_object.c:5:
/mnt/c/R/R-svn/trunk/src/include/Rdefines.h:168:33: error: unknown type
name ?SEXPREC?
  168 | #define s_object                SEXPREC
      |                                 ^~~~~~~
s_object.c:7:8: note: in expansion of macro ?s_object?
    7 | static s_object* obj = NULL;
      |        ^~~~~~~~



On Thu, Jul 22, 2021 at 10:18 AM Bill Dunlap <williamwdunlap at gmail.com>
wrote:

  
  
#
Thanks; fix committed in r80654.

Best,

luke
On Thu, 22 Jul 2021, Bill Dunlap wrote: