Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

mex fortran code with ivf 9.0

sunnam
Beginner
782 Views
Hello
I'm looking forward to mex fortran code with ivf 9.0
in the matlab environment under windows 2000.
So far ivf is not supported by mathworks.
I could get intelf8.1opts.bat online but it is
written for ivf8.1 version.
i need help to rewrite theintelf8.1opts.bat
so that matlab can work with ivf 9.0.

Can anyone send me intelf9.0.opts.bat to run
fortran mex code with intel visual fortran 9.1
in matlab
or suggest what changes should i make in
intelf8.1opts.bat or df66opts.bat

Thanks
Sunnam
0 Kudos
4 Replies
Steven_L_Intel1
Employee
782 Views
There should be no difference between 8.1 and 9.0 in this regard.
0 Kudos
sunnam
Beginner
782 Views
Hi Steve,
But when i try running the mex file,
i get this following error.
>> cd([matlabroot 'externexamplesmex'])
>> mex yprimef.f yprimefg.f
'link' is not recognized as an internal or external command,
operable program or batch file.

C:MATLAB6P5BINWIN32MEX.PL: Error: Link of 'yprimef.dll' failed.

??? Error using ==> mex
Unable to complete successfully
Can you help me in solving this problem
Thanks
Sunnam
0 Kudos
Steven_L_Intel1
Employee
782 Views
You need to somehow make the environment variables defined by a "Fortran Build Environment for IA-32 Applications" command prompt available to the process that runs the mex file. I am not familiar with using mex files - it may be as simple as calling ifortvars.bat from a command file. Actually, it looks to me as if you're missing the defines from Visual C++. Running ifortvars.bat will take care of that - it's in Program FilesIntelFortran9.0IA32in
0 Kudos
lzheng39
Beginner
782 Views
Hi , Sunnam
Can you send me a copy of intelf8.1opts.bat that you found online? I am also trying to write a intel9.0opts.bat.
You need to modify mexopts.bat and add a path to "PATH=" for"link" to be recognized. It is "
C:Program FilesMicrosoft Visual Studio .NET 2003Vc7Bin"
Thanks,
Liping
0 Kudos
Reply