Filter löschen
Filter löschen

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

5 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Yihao Wan
Yihao Wan am 3 Mär. 2021
Thanks. It is solved by copying the mkldnn_config.h to the directory.

Weitere Antworten (0)

Kategorien

Mehr zu Build Configuration finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by