I have a file named call_mat.cpp
with two statements at its beginning:
\#include "MatlabDataArray.hpp" and \#include "MatlabEngine.hpp"These headers files are not on "gcc" default search path. They are in the folder "C:/Programmes/MATLAB/R2018a/extern/include". I tried the "-I" option to include them when running my code using the following command:gcc -c -I/C:/Programmes/MATLAB/R2018a/extern/include call_mat.cpp
I get the following error:
call_mat.cpp:1:10: fatal error: MatlabDataArray.hpp: No such file or directory 1 | #include "MatlabDataArray.hpp" | ^~~~~~~~~~~~~~~~~~~~~compilation terminated.