Not found compiler matlab

12 次查看(过去 30 天)
Petr
Petr 2014-5-18
回答: Dhanyatha 2014-6-16
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.

回答(1 个)

Dhanyatha
Dhanyatha 2014-6-16
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

类别

Help CenterFile 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!

Translated by