Error using mex (line 206) Unable to complete successfully.

1. I installed matlab2012b in windows7.
2. Compiler : Microsoft visual C++ 2008 Epress edition
3. Java version 1.7.0_02 Java<TM> SE Runtime Environment<build 1.7.0-02-b13>
Java HotSpot<TM> 64-bit Server VM<build 22.0-b13,mixed mode>
4. Microsoft .NET Framework 4 Extended -version 4.0.30319
Microsoft .NET Framework 4 Client Profile -version 4.0.30319
I have all the above software in my PC.
But when I am trying to run the model I was getting the error.
Code Error: Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Model Error: Error using construct_error (line 108) Library failed to build. Cannot continue build process. Use 'mex -setup' to select a supported C-compiler.
I try to run the mex -setup the following information is displayed. mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2012b/win64.html
Error using mex (line 206) Unable to complete successfully.
I couldn't see any compiler's information.
Please tell me how to resolve this issue.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Dic. de 2013
2008 Express is simply not one of the supported compilers for R2012b in 64 bit mode. You can use 2008 Professional or you install SDK7.1. Click on the link it supplied, http://www.mathworks.com/support/compilers/R2012b/win64.html for links to download 7.1

Más respuestas (3)

Image Analyst
Image Analyst el 26 de Dic. de 2013
The "Express editions" of Microsoft Visual Studio have severe limitations. Perhaps using it's compiler outside of Visual Studio, like another program trying to use the compiler, is not allowed. You may have to upgrade from the free Express edition to a "pay" edition.
gayatri
gayatri el 26 de Dic. de 2013
After installing 2008 Professional it worked. Thank you.
gayatri
gayatri el 26 de Dic. de 2013
Editada: gayatri el 26 de Dic. de 2013
I have one more problem.
In 2007b with mex -setup complier is not shown even after installing 2008 Professional. But in 2012b it is working fine.
What could be the reason?

Categorías

Más información sobre Get Started with MATLAB Compiler SDK en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Dic. de 2013

Editada:

el 26 de Dic. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by