[R] Standalone RMath.h in C

RwithC sadhana477co at gmail.com
Mon Oct 19 17:41:00 CEST 2009


Hi I want to use standalone Rmath.h in C, but I am getting the following
error: 
/.../include/R_ext/Boolean.h:29: error: conflicting declaration 'FALSE'
/.../include/Rmath.h:191: error: 'FALSE' has a previous declaration as
'Rboolean FALSE'
/.../include/R_ext/Boolean.h:29: error: conflicting declaration 'TRUE'
/.../include/Rmath.h:191: error: 'TRUE' has a previous declaration as
'Rboolean TRUE'
/.../include/R_ext/Boolean.h:29: error: conflicting declaration 'typedef
enum Rboolean Rboolean'
/.../include/Rmath.h:191: error: 'Rboolean' has a previous declaration as
'typedef enum Rboolean Rboolean'
I have specified the header files as : 
#define MATHLIB_STANDALONE 1
#include<Rmath.h>
#include <R.h>
#include <Rinternals.h>

When I comment out #include <R.h> and #include<Rinternals.h> I get the
linker error as:
ld: library not found for -lRmath
collect2: ld returned 1 exit status

Please help.
-- 
View this message in context: http://www.nabble.com/Standalone-RMath.h-in-C-tp25960526p25960526.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list