【发布时间】:2015-10-30 03:40:59
【问题描述】:
我在编译 .c mex 文件时遇到问题。特别是,我无法判断它是否需要很长时间才能编译(这是一个非常大的程序,大约 60MB 的代码),或者它是否配置错误或有其他问题。
我在 Ubuntu 12.04 64 位、MATLAB 2015a 上,配置了 gcc。我的 c 文件叫 test4.c。
所以,我跑了:
mex -v test4.c
Verbose mode is on.
Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require the use of
-largeArrayDims and remove the -compatibleArrayDims option.
For more information:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html.
... Looking for compiler 'gcc' ...
... Executing command 'which gcc' ...
这就是我所得到的。如果它正在做更多的事情,我会期望详细模式会打印它。
正在编译吗?我怎么知道?为什么会卡在这里(以及“哪个 gcc”在做什么?
【问题讨论】:
标签: matlab gcc compilation mex