MATLAB: Do I get a system path error when simulating a model with Embedded MATLAB blocks in Simulink 6.5 (R2006b)

-setup2005lcclccmakemexmsvcprofessionalsdksimulinkstateflow

When compiling an Embedded MATLAB block with Simulink 6.5 (R2006b) on 64-bit Windows machines, I get the following error that the path to LCC is not found. We have MSVC 8.0 (2005 professional) as the installed compiler, as there is no LCC shipped with MATLAB 7.3 (R2006b) for 64-bit Windows.
<work>\sfprj\build\test1\sfun\src>"<matlabroot>\sys\lcc\bin\lccmake" -f test1_sfun.lmk
The system cannot find the path specified.

Best Answer

This error occurs when trying to generate code using a compiler that is not supported by the product / blockset that is used in the model. Please refer to the following page for the table of supported compilers for the individual products / blockset:
For the Current Release:
For Previous Releases:
Otherwise, this error is also reported when MATLAB cannot find the required 64-bit Compiler tools. The "x64-bit Compiler & Tools" may not have been installed along with Microsoft Visual C++ 8.0. To verify if those tools are installed, check the list of installed tools in the Help -> About window of Visual Studio. To resolve the issue, re-install MSVC with the "x64-bit Compiler & Tools" option selected.