[Rd] function-like macros undefined

From: Vadim Ogranovich <vograno_at_evafunds.com>
Date: Wed 16 Mar 2005 - 02:58:32 GMT


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



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Mar 16 14:01:26 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:02 GMT