问题
The -f
command-line argument to mex
allows to specify the location of the mexopts.sh
that we wish to use. But is there a way to tell Matlab to ignore mexopts.sh
? In order to compile a specific MEX file I need to specify CC
, CFLAGS
, etc., directly on the command line when invoking mex
. Values already given in mexopts.sh
cause a conflict and cause mex
to fail.
Thanks!
来源:https://stackoverflow.com/questions/16178891/how-to-ignore-mexopts-sh-when-compiling-mex-files-for-matlab