MATLAB: Do I receive a “lcclnk.exe-Application” error when I try to compile the GUIDE-based application into a C stand-alone using the LCC compiler with MATLAB

applicationcompilererrorlcclcclnk.exeMATLABMATLAB Compiler

Why do I receive a "lcclnk.exe-Application" error when I try to compile my GUIDE-based application into a C stand-alone using the LCC compiler with MATLAB?
I am using the MATLAB Compiler to compile my GUIDE based application into a C stand-alone. I am using the LCC compiler. I used the following command in MATLAB command prompt:
mcc -v -B sgl PCAdatatool
However, I get the following error message in a windows dialog box:
lcclnk.exe-Application error
If I click OK in the dialog box, I get the following error message in MATLAB command prompt:
??? Error using ==> mbuild
Unable to complete successfully
??? Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable.
Error in ==> D:\applications\Matlab6p5\toolbox\compiler\mcc.dll
Even after these error messages, MATLAB Compiler creates the stand-alone PCAdatatool.exe. If I try to run this stand-alone, I get the following message in MATLAB command prompt and stand-alone fails to run:
Program too big to fit in memory
I can successfully use Microsoft Visual C++ 6.0 compiler to compile this code and the compiled stand-alone runs without any problem.

Best Answer

This has been verified as a bug in MATLAB Compiler 3.0 (R13) in the way that LCC compiler handles compiling C stand-alone applications. This problem is specific to the LCC compiler. There are currently no known workarounds if you want to use the LCC compiler.
Use Microsoft Visual C++ 6.0 compiler or any other supported compiler as mentioned in the technical note at the following URL: