
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:

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
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]]

