I am trying to run a code which compiles some c++ codes using mex.
I have set up mex with Microsoft Visual C++ 2010.
But when I execute the line
mex -O fconv.cc -o fconv
I get the error
compile
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
Use the -help option for more information, or consult the MATLAB API Guide.
C:PROGRA~1MATLABR2011ABINMEX.PL: Error: Unrecognized switch: -o.
I have googled a lot but couldn't find anything of use. It would be great if you someone could help me out here. I have very limited knowledge of using mex.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…