1. 【MEX】Fail to complie or link fortran mex code in Matlab 2011b
Under 64 bit windows 7, In matlab 2011b with the support by visual studio 2010 and Intel fortran 12, we run the following command:
mex timestwo.F
It failed and we got : 'link' is not recognized as an internal or external command, operable program or batch file.
Solution:
mex timestwo.F
It failed and we got : 'link' is not recognized as an internal or external command, operable program or batch file.
Solution:
- The MEX options file for Intel Fortran Composer XE 2011 with Microsoft Visual Studio 2010 professional linker points to the wrong installation directory in 64-bit MATLAB 7.13 (R2011b).
- Workaround: Edit the intelf12msvs2010opts.bat file:
- Open $MATLABROOT$\bin\win64\mexopts\intelf12msvs2010opts.bat
- Edit line 22. Change: set VSINSTALLDIR=%VS90COMNTOOLS%\..\.. to set VSINSTALLDIR=%VS100COMNTOOLS%\..\..
- Save the file
- Run mex -setup again.
- For more information, you can refer to the following bug report: 760950 found at: http://www.mathworks.com/support/bugreports/ by Ora
2. 【MEX】Why does the FORTRAN MEX API function mxCopyPtrToInteger4 return incorrect results on 64-bit MATLAB?
Solution: http://www.mathworks.com/support/solutions/en/data/1-B58BL5/index.html?product=ML&solution=1-B58BL5
3. 【MEX】How to use fortran's IMSL libraries with Matlab's mex function?
Solution: I have no idea . any help?
ref: How to use imsl in Intel Fortran 11.0 under Vsiual Studio 2005
ref: Do not use older versions of IMSL with Intel Visual Fortran Compiler version 12
ref: How to use imsl in Intel Fortran 11.0 under Vsiual Studio 2005
ref: Do not use older versions of IMSL with Intel Visual Fortran Compiler version 12
4. 【MEX】How can I compile Fortran MEX-files in Microsoft Visual Studio?
Solution: http://www.mathworks.com/support/solutions/en/data/1-4EO2YE/index.html?product=SL&solution=1-4EO2YE