MATLAB: Do I get an error when I run a Simulink model in accelerator mode in Simulink 7.5(R2010a)

simulink

I have MATLAB 7.5 (R2010a) installed on my machine with Microsoft Visual Studio 8 as the C/C++ compiler. Whenever I run a model in accelerator mode, I get the following error:
Real-Time Workshop builds with Microsoft Visual C on 64 bit windows require
that the compiler be installed. At least one of these environment variables
is expected to be set:
VS90COMNTOOLS
VS80COMNTOOLS
VS90COMNTOOLS
Please check your Microsoft Visual C installation and ensure the appropriate environemnt variable is set.

Best Answer

This is a bug with MATLAB R2010a which has been fixed in MATLAB R2010b
There is an external bug report published on it. Please download the patch provided in the EBR from the following link to fix the issue.