开发者

Asking mex to use several directories for #include files

开发者 https://www.devze.com 2023-03-22 06:03 出处:网络
I read in the documentation for MATLAB\'s mex here the following: -Ipathname : Add pathname to the list of folders to 开发者_运维百科search for #include

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 
0

精彩评论

暂无评论...
验证码 换一张
取 消