Why do I see "Error code -1073741819" when using MATLAB/Simulink?

44 views (last 30 days)
When I try to use Coder products, run a simulation in Simulink (including Stateflow, Simulink Design Verifier, SimBiology), or build any Simulink model (including shipped demos), the build fails with either with
C:\Program Files\MATLAB\RXXXXx\sys\lcc64\lcc64\bin\lccmake.exe: Error code -1073741819
or
gmake: *** [rtwdemo_counter.obj] Error -1073741819
I also see that "lcc64.exe has stopped working" reported by Windows.
This has started occurring recently and previously I had no problems generating code and building models.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Dec 2022
This issue can occur when using the LCC compiler. The error code -1073741819 reported by the build corresponds to a Windows file system error found in Windows 10 that is causing LCC to stop working.
Although the LCC compiler is currently still included in Simulink installations, the LCC compiler is no longer supported and will be removed in a future release of MATLAB and Simulink. MathWorks recommends you install one of the other supported compilers such as MinGW or Microsoft Visual Studio, and configure them using "mex -setup".
In case you would like to continue using LCC, there are numerous reports of this file system error found online, but one particularly helpful page with a few suggested workarounds can be found at the following link.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!