Issue with LCC/MSVC accelerator compiler

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

I have the same problem! Does anyone have an answer?

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

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)

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

The original poster was using Simulink 8.5, which corresponds to R2015a. In R2015a, no "Community" or "Express" versions of Visual Studio were supported. However, in R2015a, SDK 7.1 was supported, which could be downloaded from https://www.microsoft.com/en-ca/download/details.aspx?id=8279
Installing SDK 7.1 requires a little bit of trick on Windows 8.0 or Windows 8.1, and is not easy to do on Windows 10 (unless they finally fixed that); these difficulties have to do with installation of appropriate .NET versions.
For information about which Visual Studio were supported on your version of MATLAB, see https://www.mathworks.com/support/sysreq/previous_releases.html
Hello, I have this Matlab version: R2020b. And I have the same issue:
Do you know how I can fix this issue? It's so important for my final project of my Msc.
Thank you in advace. :)
Your directory name contains special characters -- "(" at the very least, and it looks like a long name as well. It would be better if you renamed the folder to not have special characters and to be at most 8 characters long.
You also need to switch to using VC++ 2019 (any edition) or VC++ 2017 (any edition); older VC++ such as 2015 require Professional edition.
When you install VC++ you might need to take extra steps in the VC++ installer in order to install support for C and command line installation. I do not use the product myself so unfortunately I do not recall the sequence of steps needed.
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!
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.

Categories

Asked:

on 19 Aug 2016

Commented:

on 7 Oct 2022

Community Treasure Hunt

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

Start Hunting!