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