Issue with LCC/MSVC accelerator compiler

조회 수: 13 (최근 30일)
Mats de Ronde
Mats de Ronde 2016년 8월 19일
댓글: Walter Roberson 2022년 10월 7일
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
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일
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
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.

댓글을 달려면 로그인하십시오.


abdullah mostafa
abdullah mostafa 2022년 3월 3일
try to change temporary file in matlab.

카테고리

Help CenterFile 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!

Translated by