code generation error: Build error: C++ compiler produced errors. See the Build Log for further details.
11 次查看(过去 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.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!