Hi Greg,
> I just tried to compile uw_kronutil2.c from the spm99 unwarp
> toolbox on
> my mac G5 and received this error message:
>
> % mex uw_kronutil2.c
> In file included from uw_kronutil2.c:94:
> /Applications/MATLAB6p5p1/extern/include/mex.h:307: macro "mxGetName"
> passed 1 arguments, but takes just 0
>
> mex: compile of 'uw_kronutil2.c' failed.
>
it seems there is a reference to the (obsolete) function mxGetName in the mex.h file. I haven't seen this myself, and when I took a look at mex.h I find that mxGetName is only referenced if the V5_COMPAT flag is defined.
Obviously you haven't set this flag yourself, but perhaps you can check the default *opts file for your setup. I am afraid I can't help you with any details on a mac system, but on e.g. a Unix system (is mac a Unix system?) there would be a mexopts.sh file defining a set of default flags that are used when compiling .C mex-files.
I hope this was to some help at least.
Good luck Jesper
|