Simulink build error while using Deep Leaning model compiled as C++ code.

I have different .tlc file due to which I'm using compiled Deep Learning Model in Simulink.
While building it, it shows following error.
libcpmt.lib(xthrow.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in ...
libcpmt.lib(uncaught_exception.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in ...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.EXE"' : return code '0x527'
Stop.

 채택된 답변

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2021년 3월 10일

0 개 추천

Hi,
The value of the "RuntimeLibrary" property must be the same for all files and libraries that are being linked together. This issue is described in the following link: http://stackoverflow.com/questions/14714877/mismatch-detected-for-runtimelibrary
hope it helps,
thanks.

추가 답변 (1개)

Raj Patel
Raj Patel 2021년 3월 18일
편집: Raj Patel 2021년 3월 18일

0 개 추천

Alternatively, deploy using Generic C/C++. Follow this link. Use Matlab 2021a for that.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 3월 4일

편집:

2021년 3월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by