[R] make: Nothing to be done for `all'.

Elizabeth Lawson lawson.elizabeth at gmail.com
Wed May 12 00:23:23 CEST 2010


Why would I want to remove (rm) the file.  I am trying to compile it. 

For the file hello2.c
/* hello.c: display a message on the screen */

#include <stdio.h>

main()
{
	printf("hello, world\n");
}

I used gcc hello2.c and it works fine.

But fort eh file hello.c
#include <R.h> 
void hello(int *n) 
{ 
int i; 
for(i=0; i < *n; i++) { 
Rprintf("Hello, world!\n"); 
} 
} 


I try R CMD SHLIB hello.c and I ge tthe error 
make: Nothing to be done for `all'.

Why does one compile and the other not?
-- 
View this message in context: http://r.789695.n4.nabble.com/make-Nothing-to-be-done-for-all-tp2173220p2195341.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list