How to install a C compiler for Matlab 2013a 64 bit version?

14 views (last 30 days)
I want to install C compiler for Matlab2013a version. Please help with the procedure.

Answers (1)

Abhiram Bhanuprakash
Abhiram Bhanuprakash on 28 Oct 2014
Edited: Abhiram Bhanuprakash on 28 Oct 2014
Hi Kalyani,
The C compiler you would want to install depends on what features of MATLAB you would like to use.
For example, For C and C++ shared libraries, you can use any of the following:
a. Microsoft Windows SDK 7.1
b. Microsoft Visual C++ 2012 Professional
c. Microsoft Visual C++ 2010 Professional SP1
d. Microsoft Visual C++ 2008 Professional SP1 and Windows SDK 6.1
If you want a complete table of supported compilers for MATLAB R2013a, you can refer to this documentation
In the above mentioned documentation, you can find a table of the features and the supported compilers.
If you would like to use the compiler Windows SDK 7.1 which is available for free, you can install it by following the steps mentioned here
After installing, make sure to point MATLAB to use the installed compiler by executing the following line in the MATLAB Command Window:
>> mex -setup
For more information on 'mex' command, refer to the documentation here and here
  2 Comments
Kalyani
Kalyani on 28 Oct 2014
Before installing SDK7.1 do i have to install Visual C++ compiler?
Shubham Patel
Shubham Patel on 18 Apr 2019
WIndows SDK does work for C code generation. But for C++ code you will need Visual Studio.
SDK doesn't have C++ Compiler

Sign in to comment.

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!