Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: FORTRAN MEX-Files under Linux
Replies: 1   Last Post: Jul 25, 1996 4:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Brian Bourgault

Posts: 37
Registered: 12/7/04
FORTRAN MEX-Files under Linux
Posted: Jul 18, 1996 2:09 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

If you would like to use FORTRAN MEX-Files with your Linux release
of MATLAB 4.2c, there's a simple patch to the mex scripts available
on The MathWorks FTP server.

The default environment for the MATLAB Linux FORTRAN MEX-File
building process uses "f2c" and "gcc" as the default FORTRAN
environment. fmex will call "f2c" first to translate your FORTRAN
program into the C language and then call the C compiler "gcc" to
compile it into object code.

If you want to use a FORTRAN compiler ("F77") you'll need to edit
the file: $MATLAB/bin/.mexrc.sh and set FC='f77'. This will
override the "f2c" and "gcc" defaults.


The files are README.fmex.lnx and fmex.lnx.tar:
ftp://ftp.mathworks.com/pub/tech-support/library/extern/lnx86

NOTE: f2c does not support nonstandard but useful extentions like %VAL.
If you need to use extentions, try the Absoft FORTRAN 77 compiler.

For more information about FORTRAN Linux:
http://marie.mit.edu/~templon/fortran.html
http://www.absoft.com

Brian
--
---------------------------------------------------------------
| Brian Bourgault brian@mathworks.com |
| The MathWorks, Inc. http://www.mathworks.com |
| 24 Prime Park Way Natick, MA 01760 |
| Tel: (508) 653-1415 x7322 Fax: (508) 653-2997 |
---------------------------------------------------------------





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.