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 件のコメント

Manuel Scholl
Manuel Scholl 2018 年 4 月 22 日
編集済み: Manuel Scholl 2018 年 4 月 22 日
I have the same problem! Does anyone have an answer?
Jan
Jan 2018 年 4 月 22 日

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

Walter Roberson
Walter Roberson 2018 年 4 月 22 日
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

サインインしてコメントする。

回答 (2 件)

Manuel Scholl
Manuel Scholl 2018 年 4 月 28 日

0 投票

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 件のコメント

Walter Roberson
Walter Roberson 2018 年 4 月 28 日
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
Damien Lahire Gomez-Martinho
Damien Lahire Gomez-Martinho 2022 年 10 月 5 日
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. :)
Walter Roberson
Walter Roberson 2022 年 10 月 5 日
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.
Damien Lahire Gomez-Martinho
Damien Lahire Gomez-Martinho 2022 年 10 月 6 日
編集済み: Damien Lahire Gomez-Martinho 2022 年 10 月 6 日
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 2022 年 10 月 7 日
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2016 年 8 月 19 日

コメント済み:

2022 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by