概述
问题描述:D:PROGRA~1MATLABR2010ABINMEX.PL: Error: No compiler options file could be found to compile source code. Please run "mex -setup" to rectify.
??? Error using ==> mex at 222 Unable to complete successfully.
在matlab命令行
问题分析:要混编代码,没有安装混编译器
解决方案:用 mex -setup安装之,因为你自己有C++的编译器,我是选择VS2008的,不行的话,自己每个都试试,就OK了,如下:
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in D:PROGRA~1MATLABR2010asyslcc
[2] Microsoft Visual C++ 2008 SP1 in D:Program FilesMicrosoft Visual Studio 9.0
[3] Microsoft Visual C++ 6.0 in D:Program FilesMicrosoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1
Location: D:Program FilesMicrosoft Visual Studio 9.0
Are these correct [y]/n? y
***************************************************************************
Warning: MEX-files generated using Microsoft Visual C++ 2008 require
that Microsoft Visual Studio 2008 run-time libraries be
available on the computer they are run on.
If you plan to redistribute your MEX-files to other MATLAB
users, be sure that they have the run-time libraries.
***************************************************************************
最后
以上就是着急朋友为你收集整理的mex at 222 Unable to complete successfully.的全部内容,希望文章能够帮你解决mex at 222 Unable to complete successfully.所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复