Hi Jesper,
This was very helpful, thanks.
I had to edit mexopts.sh in /Applications/MATLAB6p5p1/bin. This
involved removing the flag '-traditional-cpp' for the mac compiler.
thanks again,
Greig
On 27/03/2005, at 1:31 AM, Jesper Andersson wrote:
> 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
>
>
>
>
__
Dr Greig de Zubicaray
ARC Research Fellow
Centre for Magnetic Resonance
University of Queensland, QLD 4072, Australia
Tel: (+617) 3365 4100 (Office) or (+617) 3365 4250 (Direct)
Fax: (+617) 3365 3833
http://www.cmr.uq.edu.au/CMR_Staff_Zubicaray.htm
***Please note change of location as of January 2005***
Room B106, Ritchie Building, Research Road
(across the road from CMR)
|