|
"Mateusz Gos" <webmaster24@wp.pl> wrote in message <hq25ka$qas$1@fred.mathworks.com>...
> i am compiling a set of *.for (Fortran) files to create a mex file but encountered a problem to which a solution would be to modify some mex options. exactly what i am after is as follows:
>
> the /assume:backslash option is on and tries to interpret backslashes in character strings as C escape sequences. this should be removed. alternatively, if "mex" won't allow me to do that, could try adding "/assume:nobackslash".
>
> problem is do not know where to change it and how. I have Visial Fortran Compiler 11.1 tested and working on Matlab 2010a.
mex options files are in the following directory (modify as appropriate for your system):
[matlabroot '\bin\win32\mexopts']
The file name to look for should be something like:
intelf11msvs2005opts.bat (for mex functions)
or
intelf11msvs2005engmatopts.bat (for engine applications)
Inside this file, modify the COMPFLAGS line. In addition to your problem, I would advise deleting the /fixed option from this line. That will allow you to compile .f90 files as free format.
James Tursa
|