5.0

5.0 | 1 rating Rate this file 279 downloads (last 30 days) File Size: 14.6 KB File ID: #22689

Microsoft 32/64-bit Visual C++ 2008 Express support files

by Larry Baker

 

15 Jan 2009

No BSD License  

MEX and MBUILD setup files for 32/64-bit Microsoft Visual C++ 2008 Express and Windows Platform SDK.

Download Now | Watch this File

File Information
Description

These instructions and setup files can be used to download, install and configure Microsoft's free Visual C++ 2008 Express compiler with MatLab on either 32-bit or 64-bit Windows OS, using the latest Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5. (We tried the solution in article 18508, but those files did not work for the latest Microsoft products.) We use MatLab R2007a on Windows XP Professional and Windows XP Professional x64 Edition. It should be straightforward to modify these files, if necessary, for use with the standard Microsoft Visual Studio C++ 2008 product and/or later versions of MatLab.

The files provided assume the installations are on the C: drive. To use another drive, edit the files and change C: to the correct drive letter.

After performing the steps in these instructions, setup the Microsoft Visual C++ 2008 Express compiler to create MatLab MEX files, for example, with "mex -setup" at the MatLab prompt.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Microsoft Visual Studio 2008 Mex and Mbuild Setup Files

MATLAB release MATLAB 7.4 (R2007a)
Other requirements Microsoft Windows Microsoft Windows x64 Edition MEX
Zip File Content  
Other Files
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/msvc90freeengmatopts.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/msvc90freeopts.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/msvc90freeopts.stp,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/readme.txt,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/vcvars32.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/32-bit/vcvarsx86_amd64.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/msvc90freeengmatopts.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/msvc90freeopts.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/msvc90freeopts.stp,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/readme.txt,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/vcvars32.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/vcvars64.bat,
Microsoft Visual C++ 2008 Express for MatLab R2007a/64-bit/vcvarsx86_amd64.bat
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
29 Jan 2009 David

Thank you! This has been incredibly helpful to get VC++ 2008 to correctly compile 64bit mex files with Matlab 2007b (but I still wish Mathworks would officially support gcc under Windows...)

21 Jul 2009 Maja Bitenc

Dear all,

In article 18508 there are two reports (11 Feb 2008, Erik Von Wurstelberg and 25 Apr 2009, Carlos Guerrero Mosquera) that the files do not work for Matlab 7.5 (R2007b) and Windows Vista Business x64 32OS.

Can somebody report if those files by Larry Baker work for the releases described above and Microsoft Visual C++ 2008 Express?!

Thanks a lot for any comment!!!

25 Sep 2009 Dan Knudsen

Thanks for putting this together, but I can't get it to work.

Granted, I'm on XP 64bit, running 2009a, but when I get to the point of running 'mex -setup' I keep getting the following error: "Undefined subroutine &mexsetup::msvc90freematopts called at C:\PROGRA~1\MATLAB\R2009a\bin\/mexsetup.pm line 444. "

One note, I had to change the environment variable: "MSSdk=C:\Program Files\Microsoft SDKs\Windows\v6.1" to "MSSdk=C:\Program Files\Microsoft SDKs\Windows\v6.0A", since 6.0A is what showed up in that location after installing. Maybe this points to a deeper problem I had in installing VCC++ 2008? or maybe this was never meant to work with 2009a?

Any help would be appreciated, thanks!

21 Oct 2009 Craig Richardson

I've just installed this on Windows 7 Enterprise, 64-bit with Matlab R2007b. Seems to work ok with mex.

Things that are different from the readme.txt included with the files.
1) Download the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 instead of the version of Windows Server 2008
2) The file msvc90freematopts.stp on line 51 contains a reference to 'v6.1' change this to 'v6.0a'
3) The environment variable MSSdk needs to be changed to c:\Program Files\Microsoft SDKs\Windows\v6.0a

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matlab Larry Baker 15 Jan 2009 16:30:38
installation Larry Baker 15 Jan 2009 16:30:38
windows Larry Baker 15 Jan 2009 16:30:38
windows x64 Larry Baker 15 Jan 2009 16:30:38
mex Larry Baker 15 Jan 2009 16:30:38
visual c express Larry Baker 15 Jan 2009 16:30:38
visual c Larry Baker 15 Jan 2009 16:30:38
visual c express Zinedine 30 Jan 2009 10:56:15
visual c Zinedine 30 Jan 2009 10:56:20
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com