在windows sever 2008 操作系统上分别装了 matlab2009,vs2008,想把 m 文件编译成
exe 文件,但matlab找不到c的编译器(如下),请教如何解决
>> 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:
[0] None☆──────────────────────────────────────☆Waterside (一二三四五)于2009年11月04日09:27:50 星期三提到:
to use Microsoft Visual Studio with MATLAB on a 64-bit platform, you must
select "X64 Compilers and Tools" when installing Microsoft Visual Studio.
This is not selected by default. Microsoft Visual Studio 2008 Express and
Professional Editions also require that the Microsoft Windows Software
Development Kit (SDK) is installed properly.
from: www.mathworks.com☆──────────────────────────────────────☆dreamheaven (dreamheaven)于2009年11月04日15:07:30 星期三)提到:
Would you like mex to locate installed compilers [y]/n? 选n,然后选你的vs 9.
0版本,或者差不多的,然后……好像就行了。你试试?☆──────────────────────────────────────☆dreamheaven (dreamheaven)于2009年11月04日15:12:36 星期三)提到:
找到了,原话是这么说的,不知道对你有帮助吗?
您可以尝试如下步骤:
1. MATLAB 命令行输入mex -setup
2. 出现 Would you like mex to locate installed compilers [y]/n? 时,选择 n
3. 选择列出的VS2008对应的序号
4. 出现 Use C:\Program Files\Microsoft Visual Studio 9.0 anyway [y]/n? 时,选择
n
5. 出现 Please enter the location of your compiler: 时,输入VS2008的安装路径。
6. 按照提示完成配置。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)