Re: [R] A problem with R CMD SHLIB

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue 01 Aug 2006 - 23:40:41 EST

On 8/1/2006 9:06 AM, TAN Chong Hui wrote:
> Hi,
>
> I followed the example in "Writing R Extensions" to create a shared
> object in Windows, using the command
>
> R CMD SHLIB X.cc X_main.cc
>
> This was encountered:
>
> ../src/gnuwin32/MkRules:155: warning: overriding commands for target
> '.c.d'
> ../src/gnuwin32/MkRules:143: warning: ignoring old commands for target
> '.c.d'
> ../src/gnuwin32/MkRules:171: warning: overriding commands for target
> '.c.d'
> ../src/gnuwin32/MkRules:159: warning: ignoring old commands for target
> '.c.d'
> make: *** No rule to make target 'X_main.cc''. Stop.
>
> What might be the problem?
> Please advise, anyone?

I think you need to tell us more. Have you got a Makefile or Makevars in the same directory? If so, they are probably conflicting with the default ones.

If X.cc and X_main.cc are self-contained, then you won't need Makevars or Makefile. R will use its own.

Duncan Murdoch

>
> Rgds
> Chong Hui
>
> [[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.



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. Received on Wed Aug 02 00:00:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 02 Aug 2006 - 02:17:40 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.