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?

1 view (last 30 days)
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:
ERROR: lcclnk.exe-Application error
If I click OK in the dialog box, I get the following error message in MATLAB command prompt:
ERROR: ??? 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:
ERROR: 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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Apr 2023
Edited: MathWorks Support Team on 24 Apr 2023
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:

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!