[R] R CMD SHLIB help

From: Deepak Chandran <deepakc_at_u.washington.edu>
Date: Tue, 12 Feb 2008 23:52:38 -0800


Hello,

   I have been having a great deal of difficulty using R CMD SHLIB to generate the .so file from my C file. I am using Win XP, and I have cygwin installed. I updated to the latest MinGW make files in order to get rid of some error. But I still get a few warnings (shown below), and no shared file (.so file) produced at the end.

C:\cygwin\home\Deepak>R CMD SHLIB ssa.h
C:/R/src/gnuwin32/MkRules:235: warning: overriding commands for target
`.c.d'

C:/R/src/gnuwin32/MkRules:223: warning: ignoring old commands for target
`.c.d'

C:/R/src/gnuwin32/MkRules:255: warning: overriding commands for target
`.c.o'

C:/R/src/gnuwin32/MkRules:243: warning: ignoring old commands for target
`.c.o'

On another Windows computer (without Cygwin, but has Rtools), I tried the same. I get the error:
c:\R\Rtools\MinGW\bin\windres.exe: _res.rc:8: syntax error make: *** [_res.o] Error 1

Additionally, there was an error that says "gcc-sjlj" is not found. Is this supposed to be "gcc -sjlj"? As a temporary solution I made a copy of gcc.exe called gcc-sjlj.exe -- I don't know whether this will cause other problems.

Thank you very much



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 13 Feb 2008 - 09:09:21 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 13 Feb 2008 - 10:30:13 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