필터 지우기
필터 지우기

code generation error: Build error: C++ compiler produced errors. See the Build Log for further details.

조회 수: 5 (최근 30일)
I am using the C++ code generation of deep nueral network. And it poped out the folloing error:
cl /TP -c -nologo -GS -W4 -DWIN32 -D_MT -MT -EHs -D_CRT_SECURE_NO_WARNINGS /wd4251 /O2 /Oy- -DMODEL=evaluatePolicy @evaluatePolicy_rtw_comp.rsp -Fo"MWSequenceInputLayer.obj" "C:\Users\wanyh\ONEDRI~1\SKRIVE~1\MA_RL_~1\codegen\lib\EVALUA~1\MWSequenceInputLayer.cpp"
MWSequenceInputLayer.cpp
C:\Program Files\mkl-dnn\include\mkldnn.hpp(23): fatal error C1083: Cannot open include file: 'mkldnn_config.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\cl.EXE"' : return code '0x2'
Stop.
The make command returned an error of 2
Error(s) encountered while building "evaluatePolicy"
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report
Error using codegen
Error in codegeneration (line 19)
codegen('-config','cfg','evaluatePolicy','-args',argstr,'-report');
How should I solve this problem. Thank you.

채택된 답변

Yihao Wan
Yihao Wan 2021년 3월 3일
Thanks. It is solved by copying the mkldnn_config.h to the directory.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Build Configuration에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by