Re: [Rd] How to call R from C

From: Wonjae Lee <>
Date: Tue, 23 Nov 2010 00:16:49 -0800 (PST)

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--------------------
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:
Sent from the R devel mailing list archive at

______________________________________________ mailing list
Received on Tue 23 Nov 2010 - 08:19:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 23 Nov 2010 - 12:40:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive