Hy all,
 
I apologize for my ingenuity in regard to interfaces in R, but I do need it for 
my work. In that respect I took a simple and small example from the net (the 
"hello world", one) to interface R with C.
I have a Windows XP OS using R.2.5.0 and in that regard I have installed the 
Perl and RTools files to my PC. I also wrote a proper path file, as suggested. 
 
The C program is:
 
#include <C:/Archivos de programa/R-2.5.0/include/R.h>
void hello(int *n){
int i;
for(i=0;i<*n;i++){
 Rprintf("Hello, world!\n");
}
}
 
However when trying to compile the a C file in the command window:
 
R CMD SHLIB holla.c
 
I get the following message:

make: *** No rule to make target `holla.d', needed by `makeMakedeps'.  Stop.
 
Can somebody give me a hand on this,
Thanks in advance
 
 
Diogo André Alagador

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to