Issue with LCC/MSVC accelerator compiler
조회 수: 13 (최근 30일)
이전 댓글 표시
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
Jan
2018년 4월 22일
Which MSVC compiler did you install? There are version for different years, SDKs, free and Professional versions.
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
2018년 4월 28일
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
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

