I read in the documentation for MATLAB's mex here the following:
-Ipathname : Add pathname to the list of folders to search for #include files. Do not add a space after this switch.
How can I ask mex to use multiple include folders? Do I provide them as -Ipath1 -Ipath2 etc?
Yes; for example:
mex -Iinclude/path/one -Iinclude/path/two -I"include/path/with spaces" mymexfile.c
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With