
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@american.edu
 202.885.3140 voice
 202.885.3155 fax
 http://academic2.american.edu/~jpnolan

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

