Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mex_FORTRAN_win64.xml #1

Open
JohnnySG opened this issue Oct 30, 2015 · 2 comments
Open

mex_FORTRAN_win64.xml #1

JohnnySG opened this issue Oct 30, 2015 · 2 comments

Comments

@JohnnySG
Copy link

Dear chappjc,

Could you give me an example of xml configration file for mex, when compiling Fortran Source Code using gfortran? Thank you!

Best Wishes,
JohnnySG

@chappjc
Copy link
Owner

chappjc commented Oct 31, 2015

Getting x86_64-w64-mingw32-gfortran to compile Fortran source is not difficult. The trick is getting it to link with the C shared libraries (libmx.dll, libmex.dll, libmat.dll). The way compilers export symbols are often very different and there is the added challenge of the C-Fortran difference. Intel Fortran has a Windows configuration (ifortran), so it's not impossible, but Intel designed their compiler to operate with Microsoft-generated libraries. So, the GNU Fortran outputs may be incompatible. It will probably take some experimentation with the gfortran switches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants