Not found compiler matlab

12 views (last 30 days)
Petr
Petr on 18 May 2014
Answered: Dhanyatha on 16 Jun 2014
I am using windows 7 64 bit and installed visual c++ express 2010, matlab 2010a but still i am unable to find any compiler. But i installed Microsoft Windows SDK for Windows 7 and .NET Framework 4. I get the following error:
Select a compiler:
[0] None
Compiler: 0
mex: No compiler selected. No action taken.
**************************************************************************
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
**************************************************************************
C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: No compiler options file could be found to compile source code. Please run "mex -setup" to rectify.

Answers (1)

Dhanyatha
Dhanyatha on 16 Jun 2014
You are encountering this error as you are trying to compile a program, but not mentioning which compiler to use. Run “mex –setup” command on MATLAB console to choose a compiler. Since you are using Windows (64-bit) platform, no C compiler is supplied with MATLAB. You should install one of the supported compilers for MATLAB 2010a.
If you are using the Express version of Visual C++ 2010, Windows SDK 7.1 is required. Visual C++ 2010 support requires a patch to R2010a. See here for information on MEX support files

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!