Issue with LCC/MSVC accelerator compiler

74 views (last 30 days)
Mats de Ronde
Mats de Ronde on 19 Aug 2016
Commented: Walter Roberson on 7 Oct 2022
Hi,
I'm having issues with using the Accelerator and Rapid Accelerator modes in Simulink 8.5. When I run in normal mode everything is fine, but once I attempt to run the Accelerator I get the message "Failed to build model 'Model' using LCC in rapid accelerator mode, please consider using MSVC instead."
As I understood it, LCC is the default compiler. I therefore attempted to install the MSVC compiler, which (on this new Windows 10 machine) required installing all of Visual Studio. However, I still get the same message. I therefore assume it has continued to use the LCC compiler. Is it possible to manually change compiler? Or was the MSVC compiler simply installed incorrectly?
  3 Comments
Jan
Jan on 22 Apr 2018

Which MSVC compiler did you install? There are version for different years, SDKs, free and Professional versions.

Walter Roberson
Walter Roberson on 22 Apr 2018
Also, lcc itself was only for 32 bit MATLAB, which was only available up to R2015b. However, lccw64 has been included with the products that support it, from at least R2015a onwards (I did not check earlier versions.) lccw64 supports Rapid Accelerator

Sign in to comment.

Answers (2)

Manuel Scholl
Manuel Scholl on 28 Apr 2018
Which MSVC compiler did you install? There are version for different years, SDKs, free and Professional versions.
--> I think I haven´t installed one yet. By "mex --Setup" I only get the following mex -setup C++ mex -setup FORTRAN
Where can I downlowd the MSVC Compilers?
  5 Comments
Damien Lahire Gomez-Martinho
Edited: Damien Lahire Gomez-Martinho on 6 Oct 2022
As I look, yes, I need to use the VC++ 2019 for my Matlab version (2020b) and use the compiler MSVC no? Could be the problem and solve the issue maybe. This afternoon I'm going to do it. Now I'm in the office and I'm not able to perform this changes.
Other strange thing that I see is this one:
This file must be self-created, because I did not create it. Or is the file created when a rapid accelerator method is selected?
Thank you!
Walter Roberson
Walter Roberson on 7 Oct 2022
That file is created automatically -- but the ( in the directory name is potentially a problem.
MSVC is an appreviation for Microsoft Visual C, another name for the Visual Studio compiler (especially the C compiler.) When you install Visual Studios you will probably need to explicitly ask to install C as well as C++, if I recall correctly.

Sign in to comment.


abdullah mostafa
abdullah mostafa on 3 Mar 2022
try to change temporary file in matlab.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!