[Rd] How to call R from C

Wonjae Lee wjlee2002 at naver.com
Tue Nov 23 09:16:49 CET 2010


Thank you!

I tried to build a C code below, and I got a error message.
Thank you for your help in advance.

<C code>

#include "embeddedRCall.h"

int main(int argc, char *argv[])
{
    eval_R_command("print", argc, argv);
    return(0);
}
=========================================

<error message>
--------------------Configuration: Rtest - Win32 Debug--------------------
Compiling...
Rtest.c
Linking...
Rtest.obj : error LNK2001: unresolved external symbol _eval_R_command
Debug/Rtest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Rtest.exe - 2 error(s), 0 warning(s)

-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-call-R-from-C-tp3053943p3054977.html
Sent from the R devel mailing list archive at Nabble.com.



More information about the R-devel mailing list