I am trying to write a Mex function and compile it in the MATLAB command window using
I have already done mex -setup and written other Mex functions that run without error.
I am using the boost libraries for C++ in my program. This is one of the headers that I am using:
It gives me the following error message when I try to compile:
fatal error C1083: Cannot open include file: 'boost/random /uniform_int.hpp': No such file or directory
I then included the full path name:
and get a new error message:
C:\boost_1_46_1\boost\random\uniform_int.hpp(22) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory.
This indicates that it was able to open the header file that it previously couldn't. But inside the uniform_int.hpp file there is a #include boost/config.hpp and it can't open that header file.
I don't really feel like messing with the boost header files to try to get it to work. The boost libraries also work fine when I use them in Visual C++. Is there any way I can get this to work by doing something in the MATLAB editor or at the command window prompt? I know in Visual C++ I can just add additional "include" directories. Is there a similar way of doing this through MATLAB?