- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have some problems concerning mexing fortran code in MATLAB.
The following is my situation:
Matlab version: 7.1 R14sp3
Fortran compiler: intel visual fortran 9.1
IDE: Visual studio 2005
OS: Windows XP sp2
I tried to download a modified intelf8.1.bat for my case and adjusted it to 9.1 version. But I still got error when compiling. Please help, thanks a lot.
options file is shown below:
----------------------------------------------------------------
-> Options file = C:Documents and SettingspazixuApplication
DataMathWorksMATLABR14SP3mexopts.bat
MATLAB = C:MATLAB71
-> COMPILER = ifort
-> Compiler flags:
COMPFLAGS = /iface:cvf /IC:MATLAB71/extern/include -c -w95 -nologo
-DMATLAB_MEX_FILE
OPTIMFLAGS = /MD -O3 -Og -DNDEBUG
DEBUGFLAGS = /MD -Zi
arguments =
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /dll /export:MEXFUNCTION /MAP
/LIBPATH:"C:MATLAB71externlibwin32digitaldf60" libmx.lib
libmex.lib libmat.lib msvcrt.lib /implib:_lib1219.x
LINKDEBUGFLAGS = /debug /pdb:"yprimef.mexw32.pdb"
LINKFLAGSPOST =
Name directive = /out:"yprimef.mexw32"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
Errors are like below. Since too many alike syntax error, I just excerpt
one from the output.
--> "ifort /iface:cvf /IC:MATLAB71/extern/include -c -w95 -nologo
-DMATLAB_MEX_FILE /FoC:DOCUME~1pazixuLOCALS~1Tempyprimefg.obj /MD
-O3 -Og -DNDEBUG yprimefg.F"
fortcom: Warning: Bad # preprocessor line
yprimefg.F(19) : Error: Syntax error, found ',' when expecting one of:
=> = . ( %
MWPOINTER PLHS(*), PRHS(*)
-----------------------^
I have some problems concerning mexing fortran code in MATLAB.
The following is my situation:
Matlab version: 7.1 R14sp3
Fortran compiler: intel visual fortran 9.1
IDE: Visual studio 2005
OS: Windows XP sp2
I tried to download a modified intelf8.1.bat for my case and adjusted it to 9.1 version. But I still got error when compiling. Please help, thanks a lot.
options file is shown below:
----------------------------------------------------------------
-> Options file = C:Documents and SettingspazixuApplication
DataMathWorksMATLABR14SP3mexopts.bat
MATLAB = C:MATLAB71
-> COMPILER = ifort
-> Compiler flags:
COMPFLAGS = /iface:cvf /IC:MATLAB71/extern/include -c -w95 -nologo
-DMATLAB_MEX_FILE
OPTIMFLAGS = /MD -O3 -Og -DNDEBUG
DEBUGFLAGS = /MD -Zi
arguments =
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /dll /export:MEXFUNCTION /MAP
/LIBPATH:"C:MATLAB71externlibwin32digitaldf60" libmx.lib
libmex.lib libmat.lib msvcrt.lib /implib:_lib1219.x
LINKDEBUGFLAGS = /debug /pdb:"yprimef.mexw32.pdb"
LINKFLAGSPOST =
Name directive = /out:"yprimef.mexw32"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
Errors are like below. Since too many alike syntax error, I just excerpt
one from the output.
--> "ifort /iface:cvf /IC:MATLAB71/extern/include -c -w95 -nologo
-DMATLAB_MEX_FILE /FoC:DOCUME~1pazixuLOCALS~1Tempyprimefg.obj /MD
-O3 -Og -DNDEBUG yprimefg.F"
fortcom: Warning: Bad # preprocessor line
yprimefg.F(19) : Error: Syntax error, found ',' when expecting one of:
=> = . ( %
MWPOINTER PLHS(*), PRHS(*)
-----------------------^
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try adding /fpp to the command line. Are you sure you need /iface:cvf?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page