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
2010년 10월 24일
편집: MathWorks Support Team
2021년 3월 3일
I would like to know the steps required for using Microsoft Visual Studio 2005 Express Edition on 32-bit Windows machines for creating MEX files.
채택된 답변
MathWorks Support Team
2021년 3월 3일
편집: 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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!