如何设置matlab 编译器 mex

如何设置matlab 编译器 mex,第1张

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:\Programs\MATLAB\R2010a\sys\lcc

[2] Microsoft Visual C++ 2005 SP1 in D:\Program Files\Microsoft Visual Studio 8

[3] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio

[0] None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C++ 2005 SP1

Location: D:\Program Files\Microsoft Visual Studio 8

Are these correct [y]/n? y

Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2010a\mexopts.bat

From template: D:\Programs\MATLAB\R2010a\bin\win32\mexopts\msvc80opts.bat

Done . . .

**************************************************************************

Warning: The MATLAB C and Fortran API has changed to support MATLAB

variables with more than 2^32-1 elements. In the near future

you will be required to update your code to utilize the new

API. You can find more information about this at:

http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9

Building with the -largeArrayDims option enables the new API.

**************************************************************************

如何matlab的一些编译框放在一起

1、安装编译器。可有多种选择,自带了一个LCC,推荐使用VC++

2、设置编译器。在命令行输入mbuild –setup以及mex –setup,选择安装的c编译器。

3、调用编译器。此处使用MATLAB下的一个GUI平台deploytool下完全实现。

4、安装<matlab path>\toolbox\compiler\deploy\win32目录下的MCRInstaller。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/7736697.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-09
下一篇 2023-04-09

发表评论

登录后才能评论

评论列表(0条)

保存