How can I set up Microsoft Visual Studio 2005 Express Edition to be used with MATLAB to create MEX files on 32-bit Windows?

1 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2021-3-3
Microsoft Visual Studio 2005 Express Edition can be used on 32-bit Windows to create MEX files in the following releases of MATLAB:
* MATLAB 7.4 (R2007a)
* MATLAB 7.5 (R2007b)
* MATLAB 7.6 (R2008a)
* MATLAB 7.7 (R2008b)
To install Visual Studio 2005 Express Edition with all required components:
1. Install Microsoft Visual Studio 2005 Express Edition. The default options can be used during installation.
2. Install Microsoft Platform SDK for Windows Server 2003 SP1. The Microsoft Platform SDK for Windows Server 2003 SP1 should be available by searching Microsoft's download site, or by going directly to:
Do not install beta or 'Release Candidate' (RC) versions.
3. Define the MSSdk variable in the Windows environment. The value of this environment variable is the path to the installation directory of the SDK. This environment variable is not usually defined by the Microsoft Platform SDK installation program.
4. At this point you should be able to proceed and compile code as usual.
For example, to select the compiler and build the YPRIME.C example MEX-file,
mex -setup % Select Visual Studio 2005 Express Edition
copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'))
mex -v yprime.c
yprime(1,1:4)
The final line should execute the MEX-file, and calculate the following output:
ans =
2.0000 8.9685 4.0000 -1.0947

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in MATLAB Compiler SDK 的更多信息

标签

尚未输入任何标签。

产品


版本

R2008b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by