No ifort output when mex fails to compile (Windows, 2014a, VS2013, Intel Visual Fortran 2013)

I have run mex -setup FORTRAN and it correctly identifies my compiler. I can compile .F and .F90 files and create valid binaries.
The problem occurs when I try to compile a file which has some syntax or other bug which shouldn't compile. Instead of seeing a compiler message about what my error is so that I can fix it, I simply get an error telling me that mex as failed.
Incidentally, I believe this is known as "The Real Man's Compiler" (rmcc): If your code contains a syntax error, undefined variable, or fails to link, the compiler will simply exit and print a nice, succinct "No."
As fun as that is, I prefer the hand-holding compiler. Has anyone else observed this issue?

回答 (2 件)

James Tursa
James Tursa 2015 年 6 月 4 日

0 投票

Are you compiling with the -v option?

1 件のコメント

Luke Robison
Luke Robison 2015 年 6 月 4 日
I tried with and without -v, but still not getting output from ifort itself, only the commandline used to call ifort (which looks fine).

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

Luke Robison
Luke Robison 2015 年 6 月 9 日

0 投票

Bump. Has anyone else observed this issue? Is there some way I can get mex to log compiler output to some file?

カテゴリ

ヘルプ センター および File ExchangeFortran with MATLAB についてさらに検索

質問済み:

2015 年 6 月 4 日

回答済み:

2015 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by