can we compile fortran files to mex on Windows using WSL ?

2 ビュー (過去 30 日間)
Hamza OUDICH
Hamza OUDICH 2023 年 7 月 23 日
コメント済み: Hamza OUDICH 2023 年 7 月 27 日
Dear all,
I am wondering if one could compile the fortran files to mex using gfortran like in Ubuntu, but now using WSL environment on windows 10 ?
If yes, this would be great help to avoid installing XE and VS 2017
Thanks :)

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 7 月 23 日
Is it possible ? Googling, posts say Yes. For example https://groups.google.com/g/comp.lang.fortran/c/e-tK0J7fHJM?pli=1
I am far from certain it would be worth the hastles.
(... unless perhaps you are in circumstances that are blocked by the Visual Studios Community license and the Intel XE free licenses. Which is something that I have run into. Those licenses both consider my volunteer assistance here to be outside the scope of "hobby" because the appropriate license test is "personal use" rather than "free". It would cost me about $CDN 10000 per year to maintain the licenses to be able to use them in my volunteer work. So I just don't... I pass on questions that require using those licenses.)
  3 件のコメント
Walter Roberson
Walter Roberson 2023 年 7 月 26 日
previous posts have tended to suggest that it is possible but not simple.
Hamza OUDICH
Hamza OUDICH 2023 年 7 月 27 日
Ok I might have found one in your links but on C++ libraries. I will see if I can extend to Fortran.
However, if there are any links showing clearly how to use mex-gfortran on windows It would be nice :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by