MSVC2008
与
Matlab R2009b
混合编程
Rorypeck
or Park
,
at
HEU
,
2009
.
12
.
17
一
、
配置
Matlab
环境
(
1
)
Mbuild
配置
键入命令
:
mbuild
–
setup
,
配置过程如下
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n?
y
Select a compiler:
[1] Lcc
-
win32 C 2.4.1 in C:
\
PROGRA~1
\
Matlab
\
R2009b
\
sys
\
lcc
[2] Microsoft Visual C++ 2008 SP1 in C:
\
Program Files
\
Microsoft Visual Studio
9.0
[3] Microsoft Visual C++ 6.0 in C:
\
Program Files
\
Microsoft Visual Studio
[0] None
Com
piler:
2
Please verify your choices:
Compiler: Microsoft Visual C++ 2008 SP1
Location: C:
\
Program Files
\
Microsoft Visual Studio 9.0
Are these correct [y]/n?
y
*********************************************
************************
Warning: Appli
cations/components generated using Microsoft Visual Studio
2008 require that the Microsoft Visual Studio 2008 run
-
time
libraries be available on the computer used for deployment.
To redistribute your applic
ations/components, be sure that the
deployment machine has these run
-
time libraries.
Trying to update options file:
C:
\
Documents and Settings
\
Administrator
\
Application Data
\
MathWorks
\
MATLAB
\
R2009b
\
compopts.bat
From
te
mplate:
C:
\
PROGRA~1
\
Matlab
\
R2009b
\
bin
\
win32
\
mbuildopts
\
msvc90compp.bat
Done . . .
这样
,
matlab
编译环境
配置成功了
。