>> matlab2fmex('myfunc');
Converting --- myfunc.m ==> myfunc.f90 ==>
myfunc.mex
Original:
function z = myfunc(x)
temp1 = x .* 10 .* sin(x);
z = round(temp1);
putting decimal points etc. ....................... m finished
fixing bracketed assignments ...................... a
finished
fixing bracketed assignments II ................... t finished
operator changeover ............................... l finished
making 2 subscripts ............................... a finished
fixing logical operators .......................... b finished
subscript vectorizing ............................. 2 finished
fixing if, for, etc keywords ...................... f finished
fixing colon expressons ........................... m finished
performing word conversion ........................ e finished
fixing assignments ................................ x finished
2 lines
Setting the size of output var z equal to the input var x.
Setting the size of local var temp1 equal to the size of
input var x.
Creating mexcallback module...
Creating mexoperators module...
Creating mexfunctions module...
Finished writing myfunc.f90:
temp1 = x * 10.0 * sin(x);
z = anint(temp1);
Starting compilation of myfunc.f90
Calling mex to compile the output at myfunc.f90
==> mex -v myfunc.f90
This is mex, Copyright 1984-2003 The MathWorks, Inc.
-> Default options filename found in C:\Documents and
Settings\Misak\Application
Data\MathWorks\MATLAB\R14
----------------------------------------------------------------
-> Options file = C:\Documents and
Settings\Misak\Application
Data\MathWorks\MATLAB\R14\mexopts.bat
MATLAB = C:\MATLAB704
-> COMPILER = fl32
-> Compiler flags:
COMPFLAGS
= /fpp:"/m /SC:\MATLAB704/extern/include" -c -nokeep -
G5 -nologo -DMATLAB_MEX_FILE /fixed
OPTIMFLAGS = /MD -Ox -DNDEBUG
DEBUGFLAGS = /MDd -Zi
arguments =
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS
= /DLL /EXPORT:_MEXFUNCTION@16 /LIBPATH:"C:\M
ATLAB704\extern\lib\win32\digital\df60" libmx.lib
libmex.lib libmat.lib /implib:_lib8492.lib /NOLOGO
LINKFLAGSPOST =
Name directive = "/out:myfunc.dll"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
--> "fl32 /fpp:"/m /SC:\MATLAB704/extern/include" -c -
nokeep -G5 -nologo -
DMATLAB_MEX_FILE /fixed /Fomyfunc.obj /MD -Ox -
DNDEBUG myfunc.f90"
f90: Error: Illegal character in statement label field [m]
f90: Error: Illegal character in statement label field [o]
f90: Error: Illegal character in statement label field [d]
f90: Error: Illegal character in statement label field [u]
f90: Error: Illegal character in statement label field [l]
f90: Error: First statement in file must not be continued
myfunc.f90(2) : Error: Illegal character in statement label
field [i]
interface mxs
-^
myfunc.f90(2) : Error: Illegal character in statement label
field [n]
interface mxs
--^
myfunc.f90(2) : Error: Illegal character in statement label
field [t]
interface mxs
---^
myfunc.f90(2) : Error: Illegal character in statement label
field [e]
interface mxs
----^
myfunc.f90(3) : Error: Illegal character in statement label
field [m]
module procedure mxs_r2
--^
myfunc.f90(3) : Error: Illegal character in statement label
field [o]
module procedure mxs_r2
---^
myfunc.f90(3) : Error: Illegal character in statement label
field [d]
module procedure mxs_r2
----^
myfunc.f90(4) : Error: Illegal character in statement label
field [m]
module procedure mxs_c2
--^
myfunc.f90(4) : Error: Illegal character in statement label
field [o]
module procedure mxs_c2
---^
myfunc.f90(4) : Error: Illegal character in statement label
field [d]
module procedure mxs_c2
----^
myfunc.f90(5) : Error: Illegal character in statement label
field [m]
module procedure mxs_i2
--^
myfunc.f90(5) : Error: Illegal character in statement label
field [o]
module procedure mxs_i2
---^
myfunc.f90(5) : Error: Illegal character in statement label
field [d]
module procedure mxs_i2
----^
myfunc.f90(6) : Error: Illegal character in statement label
field [m]
module procedure mxs_r1
--^
myfunc.f90(6) : Error: Illegal character in statement label
field [o]
module procedure mxs_r1
---^
myfunc.f90(6) : Error: Illegal character in statement label
field [d]
module procedure mxs_r1
----^
myfunc.f90(7) : Error: Illegal character in statement label
field [m]
module procedure mxs_c1
--^
myfunc.f90(7) : Error: Illegal character in statement label
field [o]
module procedure mxs_c1
---^
myfunc.f90(7) : Error: Illegal character in statement label
field [d]
module procedure mxs_c1
----^
myfunc.f90(8) : Error: Illegal character in statement label
field [m]
module procedure mxs_i1
--^
myfunc.f90(8) : Error: Illegal character in statement label
field [o]
module procedure mxs_i1
---^
myfunc.f90(8) : Error: Illegal character in statement label
field [d]
module procedure mxs_i1
----^
myfunc.f90(9) : Error: Illegal character in statement label
field [m]
module procedure mxs_r
--^
myfunc.f90(9) : Error: Illegal character in statement label
field [o]
module procedure mxs_r
---^
(23) : Severe: Too many errors, exiting
myfunc.i90
C:\MATLAB704\BIN\WIN32\MEX.PL: Error: Compile
of 'myfunc.f90' failed.
??? Error using ==> mex
Unable to complete successfully
Error in ==> matlab2fmex at 2078
eval(['mex',temp1,' ',filenamef,' ',libraries]);
Nobody/Anonymous ( nobody ) - 2005-03-23 18:53
5
Closed
None
Nobody/Anonymous
None
None
Public
|
Date: 2005-06-16 17:07 Logged In: NO |
|
Date: 2005-06-16 14:10 Logged In: NO |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2005-11-23 13:29 | barrowes |
| close_date | - | 2005-11-23 13:29 | barrowes |