Thank you. 
I re-installed everything from the single pack in http://www.murdoch-sutherland.com/Rtools/ 
and everything works as my beginners' tutorials suggest it would. There was probably some discrepancy in the separate components I had installed earlier. 

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

Polykarpos Pavlidis
William E. Simon Graduate School of Business 
University of Rochester
PhD Candidate, Marketing
Carol Simon Bld 4-339
585-2753702




-----Original Message-----
From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca]
Sent: Mon 31/3/2008 5:51 PM
To: Pavlidis, Polykarpos
Cc: r-devel@r-project.org
Subject: Re: [Rd] Compile dll in Windows XP
 
On 31/03/2008 4:59 PM, Pavlidis, Polykarpos wrote:
> This is my first attempt to call a C function from R. I have installed Rtools,MinGW and Perl and I have included them in my system path. I am trying to compile a toy function that can be called in R but when I type "RCMD SHLIB foo.c" I receive the following message in my Command prompt:

Show us your path.  "Including" the tools is not good enough; the order 
matters.  Rtools needs to be first.  (See the instructions that come 
with the Rtools.)

> 
> making foo.d from foo.c
> make: [foo.d] Error 255 (ignored)
> cat: foo.d: No such file or directory
> make: [makeMakedeps] Error 1 (ignored)
> windres --preprocessor = "gcc-sjlj -E -xc -DRC_INVOKED" -I C:/Progra~1/R/R-26~1.2/
> include -i foo_res.rc -o foo_res.o
> c:\MinGW\bin\windres.exe: unknown format type 'C:/PROGRA~1/R/R-26~1.2/include'
> c:\MinGW\bin\windres.exe: supported formats: rc res coff

Rtools wouldn't normally put MinGW there.  Are you sure you're using a 
current version?

Duncan Murdoch

> make: ***[foo_res.o] Error 1
> 
> Could someone please help me with what's going wrong? Thank you in advance.
> 
> 
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> 
> Polykarpos Pavlidis
> William E. Simon Graduate School of Business 
> University of Rochester
> PhD Candidate, Marketing
> Carol Simon Bld 4-339
> 585-2753702
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



	[[alternative HTML version deleted]]

