Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asking mex to use several directories for #include files

Tags:

matlab

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?

like image 476
Amelio Vazquez-Reina Avatar asked Jul 20 '11 20:07

Amelio Vazquez-Reina


1 Answers

Yes; for example:

mex -Iinclude/path/one -Iinclude/path/two -I"include/path/with spaces" mymexfile.c 
like image 98
Praetorian Avatar answered Oct 13 '22 00:10

Praetorian