【发布时间】:2020-09-23 06:21:23
【问题描述】:
我有一个名为 call_mat.cpp 的文件,开头有两条语句:
\#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
我收到以下错误:
call_mat.cpp:1:10: fatal error: MatlabDataArray.hpp: No such file or directory
1 | #include "MatlabDataArray.hpp"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
【问题讨论】:
标签: c++ matlab gcc mingw matlab-engine