On a 64-bit Windows machine I receive errors when using the -f flag to specify an options file for either the Intel Fortran compiler or the MS Platform SDK compiler.
For example, if I execute
mex -f intelf90opts.bat yprimef.F yprimefg.F
I receive the following errors
'link' is not recognized as an internal or external command,
operable program or batch file. ERROR: D:\Applications\MATLAB\BIN\MEX.PL: Error: Link of 'yprimef.mexw64' failed. ??? Error using ==> mex Unable to complete successfully
mex -f mspsdkopts.bat yprime.c
D:\Applications\MATLAB\BIN\MEX.PL: Error: Compile of 'yprime.c' failed.
??? Error using ==> mex
Unable to complete successfully
No error occurs if I execute "mex -setup" and then compile without -f, or if I use the MSVC 8.0 compiler.
Best Answer