You need to install perl and MinGW, at least. If you have them installed, then you need to properly set PATH environment variable and, probably, restart your command line session.
See chapter 5 of the manual "Writing R extensions" (installed in R_HOME/doc/manual) and these two links http://www.murdoch-sutherland.com/Rtools/ http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/ Also, it would be great to upgrade R to 2.4.1 Deb Midya wrote: > > I am using R-2.4.0 on Windows XP. I am trying to create dll file. > My C code: > /* useC1.c */ > void useC(int *i) { > i[6] = 100; > } > > I have tried to create useC1.dll. > C:\R-2.4.0\bin>R CMD SHLIB useC1.c > 'perl' is not recognized as an internal or external command, operable > program or batch file. > > Then I have tried: > C:\R-2.4.0\bin>Rcmd SHLIB useC1.c > 'perl' is not recognized as an internal or external command, operable > program or batch file. > -- View this message in context: http://www.nabble.com/-R--Calling-C-code-from-R-tf3154058.html#a8746593 Sent from the R help mailing list archive at Nabble.com. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
