[R] R CMD SHLIB errors

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Mar 19 12:42:34 CET 2008


Using 'mingw32-make' indicates that you have not followed the instructions 
accurately.  You *must* have the Rtools/bin directory ahead of all other 
tools in your PATH.

Please check again (and again) that you have followed the prescription in 
'R Installation and Administration'.

On Wed, 19 Mar 2008, sun wrote:

> I got errors when I tried to compile my code into dll on XP box.
>
> "C:/R/R-2.6.2/src/gnuwin32/MkRules:235: warning: overriding commands for
> target `.c.d'
> C:/R/R-2.6.2/src/gnuwin32/MkRules:223: warning: ignoring old commands for
> target `.c.d'
> C:/R/R-2.6.2/src/gnuwin32/MkRules:255: warning: overriding commands for
> target `.c.o'
> C:/R/R-2.6.2/src/gnuwin32/MkRules:243: warning: ignoring old commands for
> target `.c.o'
> mingw32-make: *** No rule to make target `''.o', needed by `'''.  Stop."
>
> So I decide to try the example in "writing R extensions" c++ code example
> x.hh,x.cc and xmain.cc, I compiled with "r cmd shlib x.cc xmain.cc" and got
> the same error output:
> "mingw32-make: *** No rule to make target `x.cc''.  Stop."
>
> I was able to compile dll before, since then I have updated R, installed
> other softwares, so I am a bit confusing at this moment what would be the
> cause of this problem. Could some please give some suggestions?  Thanks in
> advance.
>
> Sun
>
> ______________________________________________
> 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list