The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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/ and set FC='f77'. This will
override the "f2c" and "gcc" defaults.

The files are README.fmex.lnx and fmex.lnx.tar:

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:

| Brian Bourgault |
| The MathWorks, Inc. |
| 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.