MATLAB: R2013a and Microsoft Visual Studio 2012 Pro

compiler mex -setup microsoft visual studio 2012simulink

I have Microsoft Visual Studio 2012 Pro and Microsoft Visual Studio 2010 Pro and Matlab R2013a on my computer with Windows7.Pro.x64. I setup compiler configuration of Microsoft Visual Studio 2012 Pro using mex -setup. mex -setup see Microsoft Visual Studio 2012 Pro. But when I use Rapip Accelerator I get next errors:
Code Error:
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
Model Error:
Unable to build a standalone executable to simulate the model 'model_name' in rapid accelerator mode. Caused by: ** Error **
Parse Log:
Parsing successful for machine: "model_name"(#21)
When I setup compiler configuration of Microsoft Visual Studio 2010 Pro using mex -setup. mex -setup see Microsoft Visual Studio 2010 Pro. My Simulink model compilers no errors

Best Answer

Hi,
please contact the Technical Support. It seems to be a known issue with VS 2012 and MATLAB R2013a.
In the mean time, use another supported compiler in order to use Simulink successfully.
Related Question