<small id='AOisK'></small><noframes id='AOisK'>

<legend id='AOisK'><style id='AOisK'><dir id='AOisK'><q id='AOisK'></q></dir></style></legend>
    <bdo id='AOisK'></bdo><ul id='AOisK'></ul>
  • <tfoot id='AOisK'></tfoot>

      1. <i id='AOisK'><tr id='AOisK'><dt id='AOisK'><q id='AOisK'><span id='AOisK'><b id='AOisK'><form id='AOisK'><ins id='AOisK'></ins><ul id='AOisK'></ul><sub id='AOisK'></sub></form><legend id='AOisK'></legend><bdo id='AOisK'><pre id='AOisK'><center id='AOisK'></center></pre></bdo></b><th id='AOisK'></th></span></q></dt></tr></i><div id='AOisK'><tfoot id='AOisK'></tfoot><dl id='AOisK'><fieldset id='AOisK'></fieldset></dl></div>

      2. mex 与 MATLAB2013a 无法识别的开关:-o

        时间:2023-10-06
          <tfoot id='vzsjU'></tfoot>
            <tbody id='vzsjU'></tbody>
          <legend id='vzsjU'><style id='vzsjU'><dir id='vzsjU'><q id='vzsjU'></q></dir></style></legend>
          <i id='vzsjU'><tr id='vzsjU'><dt id='vzsjU'><q id='vzsjU'><span id='vzsjU'><b id='vzsjU'><form id='vzsjU'><ins id='vzsjU'></ins><ul id='vzsjU'></ul><sub id='vzsjU'></sub></form><legend id='vzsjU'></legend><bdo id='vzsjU'><pre id='vzsjU'><center id='vzsjU'></center></pre></bdo></b><th id='vzsjU'></th></span></q></dt></tr></i><div id='vzsjU'><tfoot id='vzsjU'></tfoot><dl id='vzsjU'><fieldset id='vzsjU'></fieldset></dl></div>
        • <small id='vzsjU'></small><noframes id='vzsjU'>

              • <bdo id='vzsjU'></bdo><ul id='vzsjU'></ul>
                  本文介绍了mex 与 MATLAB2013a 无法识别的开关:-o的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试运行一个使用 mex 编译一些 c++ 代码的代码.我已经使用 Microsoft Visual C++ 2010 设置了 mex.但是当我执行该行

                  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

                  mex -O fconv.cc -o fconv

                  我收到错误

                  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. 
                  

                  我用谷歌搜索了很多,但找不到任何有用的东西.如果有人能在这里帮助我,那就太好了.我对使用 mex 的了解非常有限.

                  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.

                  推荐答案

                  来自 mex 的 R2013a 文档(和 当前版本),没有-o选项,但是有-output:

                  From the R2013a docs for mex (and current version), there is no -o option, but there is -output:

                  -输出结果名称创建名为 resultname 的二进制 MEX 文件.自动附加适当的 MEX 文件扩展名.覆盖默认的 MEX 文件命名机制.

                  -output resultname Create binary MEX-file named resultname. Automatically appends the appropriate MEX-file extension. Overrides the default MEX-file naming mechanism.

                  顺便说一句,除非您使用 -g,否则默认情况下启用大 O 选项 (-O).

                  BTW, the big O option (-O) is on by default unless you use -g.

                  请记住,mex 不是编译器,而是编译器的前端.它的语法与您可能用于编译器的语法大不相同.

                  Keep in mind that mex is not a compiler, but a frontend to the compiler. It has very different syntax from what you might be used to for a compiler.

                  这篇关于mex 与 MATLAB2013a 无法识别的开关:-o的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Visual C++ 中 Windows 中的基本 NTP 客户端 下一篇:如何在代码中正确使用 %USERPROFILE%?

                  相关文章

                  最新文章

                1. <legend id='v46Va'><style id='v46Va'><dir id='v46Va'><q id='v46Va'></q></dir></style></legend>
                2. <small id='v46Va'></small><noframes id='v46Va'>

                  <tfoot id='v46Va'></tfoot>
                    <bdo id='v46Va'></bdo><ul id='v46Va'></ul>

                      <i id='v46Va'><tr id='v46Va'><dt id='v46Va'><q id='v46Va'><span id='v46Va'><b id='v46Va'><form id='v46Va'><ins id='v46Va'></ins><ul id='v46Va'></ul><sub id='v46Va'></sub></form><legend id='v46Va'></legend><bdo id='v46Va'><pre id='v46Va'><center id='v46Va'></center></pre></bdo></b><th id='v46Va'></th></span></q></dt></tr></i><div id='v46Va'><tfoot id='v46Va'></tfoot><dl id='v46Va'><fieldset id='v46Va'></fieldset></dl></div>