Borrar filtros
Borrar filtros

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

5 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Yihao Wan
Yihao Wan el 3 de Mzo. de 2021
Thanks. It is solved by copying the mkldnn_config.h to the directory.

Más respuestas (0)

Categorías

Más información sobre Build Configuration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by