From vograno at evafunds.com  Wed Mar 16 03:58:32 2005
From: vograno at evafunds.com (Vadim Ogranovich)
Date: Wed Mar 16 03:58:43 2005
Subject: [Rd] function-like macros undefined
Message-ID: <C698D707214E6F4AB39AB7096C3DE5A58FF437@phost015.EVAFUNDS.intermedia.net>

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]]


[Rd] function-like macros undefined
Vadim Ogranovich