[Rd] function-like macros undefined
Vadim Ogranovich
vograno at evafunds.com
Wed Mar 16 03:58:32 CET 2005
Hi,
Somehow function-like macros from Rinternals.h are not defined when I
include the file.
foo.c
##################
#include <R.h>
#include <Rinternals.h>
#ifndef NILSXP
#error("NILSXP")
#endif
#ifndef INTEGER
#error("INTEGER")
#endif
###################
When compiled:
vor/src% gcc -I/usr/local/lib/R/include -g -O2 -c foo.c -o foo.o
foo.c:11:2: #error ("INTEGER")
Note that NILSXP is defined. This is true for some other function-like
macros, e.g. RAW()
Did anyone come across such a problem?
> version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 0.1
year 2004
month 11
day 15
language R
OS: suse.9.2_64
Note also that R doesn't recognize this is Suse, it says
x86_64-unknown-linux-gnu. Hope this is not a problem.
Thanks,
Vadim
[[alternative HTML version deleted]]
More information about the R-devel
mailing list