MATLAB: Do I get compiler related errors on the 64 bit machine when using Embedded Coder 6.0 (R2011a)

Embedded Coder

I had on older version of Embedded Coder installed on a Windows XP 32 bit machine. This version worked perfectly well without me needing to do any compiler setup. I have since upgraded to a Windows 7 64 bit machine and installed a newer version of the Embedded Coder Toolbox. However, every time I try using this toolbox I get an error message telling me that MATLAB cannot find a compiler and that I should use MEX -SETUP to set up my compiler properly. Why did the toolbox work properly on the other machine but not on this one?

Best Answer

This behaviour is not due to the upgrade of the toolbox, but rather to the upgrade from a 32 bit to a 64 bit machine. The 32 bit version of MATLAB that was installed on your XP machine comes with a supported 32 bit Compiler (LCC). Consequently, it was automatically recognised and used by the Embedded Coder toolbox. However, the 64 bit version of MATLAB does not include a compiler by default. Therefore, you have to install an external compiler that is supported by your version of MATLAB. For a list of supported compilers, please refer to the following webpage:
Alternatively, you can install a 32 bit version of MATLAB on your 64 bit machine alongside your 64 bit MATLAB. This will allow you to continue using the LCC compiler by default even though you are running on a 64 bit machine.