Re: [R] R CMD SHLIB errors

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 19 Mar 2008 11:42:34 +0000 (GMT)

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

______________________________________________
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.
Received on Wed 19 Mar 2008 - 11:46:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Mar 2008 - 16:30:22 GMT.

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

list of date sections of archive