Re: [R] Linking R with Fortran 90: make: m2c: Command not found

From: Jason Liao <jg_liao_at_yahoo.com>
Date: Wed 04 Oct 2006 - 15:20:31 GMT


many Thanks to Mike Prager and José Fernández Menéndez for your help. I tried what Mike suggested in various ways but the problem is still there. Jose's solution worked beautifully in producing a dll. After dyn.load() the dll, however, is.loaded() gives me a false answer. I still need to investigate this later part. Progress has been made, nevertheless.

Jason

from http://gcc.gnu.org/wiki/GfortranFAQ:

Gfortran creates a file namemod= for each module name. This confuses the gnu make, which thinks that .mod files are Modula2 source code files. You must override this built-in rule by adding the following line somewhere in your Makefile.

%.o : %.mod  

hope this helps!!!

Jason Liao,
http://www.geocities.com/jg_liaoAssociate Professor of Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop 660
Philadelphia, PA 19102-1192
phone 215-762-3934


R-help@stat.math.ethz.ch 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.

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch 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 Thu Oct 05 01:23:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 04 Oct 2006 - 15:30:11 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.