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

Benilton Carvalho beniltoncarvalho at gmail.com
Wed May 12 10:43:58 CEST 2010


Have you removed the *.so and *.o files prior to "R CMD SHLIB hello.c"?

b

On Tue, May 11, 2010 at 11:39 PM, Elizabeth Lawson
<lawson.elizabeth at gmail.com> wrote:
> 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]]
>
> ______________________________________________
> R-help at r-project.org 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.
>



More information about the R-help mailing list