gpt4 book ai didi

matlab - 要求 mex 为 #include 文件使用多个目录

转载 作者:太空宇宙 更新时间:2023-11-03 19:27:46 25 4
gpt4 key购买 nike

我阅读了 MATLAB 的 mex here 的文档以下内容:

-Ipathname : Add pathname to the list of folders to search for #include files. Do not add a space after this switch.

如何让 mex 使用多个包含文件夹?我是否将它们提供为-Ipath1 -Ipath2 等?

最佳答案

是的;例如:

mex -Iinclude/path/one -Iinclude/path/two -I"include/path/with spaces" mymexfile.c 

关于matlab - 要求 mex 为 #include 文件使用多个目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6767844/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com