I recently bought a new macbook pro 10.6.3 and I am trying to compile some C
code I have.  I reinstalled R and Xcode on the Mac but I keep running into
the same problem.

The code help.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 in the directory that the file is located.

I get the error

make: Nothing to be done for `all'.


But in the same directory I have the file hello2.c

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


#include <stdio.h>


main()

{

printf("hello, world\n");

}


When I use gcc hello2.c it works.


Any suggestions?

	[[alternative HTML version deleted]]

