Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22032

How to include "matlabengine.hpp" and "MatlabDataArray.hpp" files in gcc's search path on windows using 64-bits MinGW and 32-bits Matlab?

$
0
0

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.

Viewing all articles
Browse latest Browse all 22032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>