MATLAB: Is there a free compiler for compiling MEX files in 64-bit MATLAB 7.2 (R2006a) on Windows platforms

-setupMATLABmissingodbc32.libwin64

I am using 64-bit MATLAB on 64-bit Windows, and would like to compile a MEX file. I have not installed any C/C++ compilers on this machine. When I execute the command in order to select a compiler:
mex -setup
There are no compilers shown. However the 32-bit version of MATLAB 7.2 (R2006a) ships with the LCC C/C++ compiler, which does appear when I attempt to select a compiler.
I would like to know if there is a freely available C/C++ compiler for 64-bit MATLAB, which I can use to build MEX files?

Best Answer

The free supported compiler available for 64-bit MATLAB 7.2 (R2006a) on Windows XP is the Microsoft Platform SDK. This can be downloaded at:
<https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/e1147034-9b0b-4494-a5bc-6dfebb6b7eb1/download-and-install-microsoft-platform-sdk-febuary-2003-last-version-with-vc6-support?forum=windowssdk>
This compiler can only be used to compile MEX files and Simulink S-Functions. It is not supported with the MATLAB Compiler 4.4 (R2006a), MATLAB Builder for .NET 2.0 (R2006a) or MATLAB Builder for Excel 1.2.6 (R2006a).
For a detailed list of supported compilers for all versions of MATLAB, please visit the following site:
<http://www.mathworks.com/support/compilers/current_release/>
Please note that there are important footnotes for most of the compilers listed on the above page.
To troubleshoot common configuration issues, see the related solutions below.
Related Question