[R] Problems embedding R in a C application
Neil Osborne
r_stuff_online at hotmail.com
Thu Apr 18 00:13:07 CEST 2002
Hello,
I've encountered two serious issues that have stopped me in my tracks, and I
would be most grateful to anyone who can provide some answers.
I am using the examples provided on the page "Testing the Embeddable R
Library". I am writing a C application, that I want to embedd R into (I'm
not interested in embedding my application in R, that's not an option). I'm
developing on a Win2K box. The two problems I've hit (so far!) are these:
Macro definition (R is using a macro already defined in one of the core
windows libraries)
Unresolved external - missing definition for func Rf_initEmbeddedR which is
prototyped as an extern in EmbeddedRCall.c
Here are the issues again (in more detail)
===========================================================
1. Macro re-definition
In file ..\include\R_ext\RS.h
the line (37):
#define ERROR ),error(R_problem_buf);}
causes this problem :
warning C4005: 'ERROR' : macro redefinition
d:\visualstudio\vc98\include\wingdi.h(93) : see previous definition
of 'ERROR'
2. Unresolved external:
unresolved external symbol _Rf_initEmbeddedR
This function is not defined anywhere. Does anyone know how I can init a
"session" of R in "embedded" mode (i.e. no direct writing to the console
etc) ?
Any help is very welcome
Many thanks in advance
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list