[R] A problem with R CMD SHLIB

2006-08-01 Thread TAN Chong Hui
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?

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.


Re: [R] A problem with R CMD SHLIB

2006-08-01 Thread Duncan Murdoch
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.