From murdoch at stats.uwo.ca  Mon Mar 31 23:51:43 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 31 Mar 2008 17:51:43 -0400
Subject: [Rd] Compile dll in Windows XP
In-Reply-To: <46F9F96760FD9A48AF99A8855DA6B59101100708@ITS-EXC8.UR.Rochester.edu>
References: <46F9F96760FD9A48AF99A8855DA6B59101100708@ITS-EXC8.UR.Rochester.edu>
Message-ID: <47F15CEF.2030302@stats.uwo.ca>

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 at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Compile dll in Windows XP
Duncan Murdoch