[Rd] RCMD SHLIB: static libraries and f77 libraries on Windows

From: John Nolan <jpnolan_at_american.edu>
Date: Thu, 23 Oct 2008 17:49:40 -0400

Dear R-devel,

I am converting some stand-alone programs (mixed C and F77) to R functions. I've run into two issues that
I haven't been able to resolve. I've looked at the R-exts manual and Readme files, but haven't found answers.

(1) Can I link to a (Win32) static library? Is there some option to RCMD
SHLIB that allows this?
I've tried RCMD SHLIB myprog.c -l mylib.a but it doesn't work. Perhaps setting the flag LDFLAGS? If so, how do I do this?
Perhaps using MakeVar/MakeFile? Failing this, is there a way to use a wildcard on
a link , e.g. RCMD SHLIB myprog.c *.o, instead of having to list ~100 object files?

(2) I'm using some legacy F77 code in the project, and it calls some gcc
library functions:

    G77_exit_0, s_cat, F77_aloc, etc.
These used to be in gcc libraries libg2c.a and libgcc.a, which were part of MinGW. They
don't seem to be in the MinGW that comes with Rtools. Have they be replaced, and if
so, what are the appropriate libraries?

If this is documented, or if there is an example somewhere, please let me know.

Thanks, John

...........................................................................

 John P. Nolan
 Math/Stat Department
 227 Gray Hall
 American University
 4400 Massachusetts Avenue, NW
 Washington, DC 20016-8050

 jpnolan_at_american.edu
 202.885.3140 voice
 202.885.3155 fax
 http://academic2.american.edu/~jpnolan

...........................................................................
	[[alternative HTML version deleted]]

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 23 Oct 2008 - 22:59:52 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 Fri 24 Oct 2008 - 01:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive