C++ code importer cannot find the cmath library
이전 댓글 표시
Hi, I'm trying to import some C++ controller code I have written to test it with my simulink plant before putting it on hardware. I'm following this tutorial:
When I get to the "Analyze" stage it throws this error:
Error:Failed to parse custom code.
Caused by:
"/Users/alfieeagleton/Desktop/Uni/Thesis/Matlab/cpp/include/actuator.hpp", line 23: error: cannot open source file "cmath"
| #include
| ^
I have included <cmath> and <algorithm> and it will throw an error on both if I remove <cmath>.
Does anyone know what I'm doing wrong?
Thanks
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Import Custom C/C++ Code Using the Simulink Code Importer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!