[19028] in Athena Bugs
sun4 8.4.25: matlab
daemon@ATHENA.MIT.EDU (Guillermo Moloche)
Fri Jul 20 12:06:59 2001
Message-Id: <200107201606.MAA27654@w20-575-80.mit.edu>
To: bugs@MIT.EDU
Date: Fri, 20 Jul 2001 12:06:57 -0400
From: Guillermo Moloche <gmoloche@MIT.EDU>
System name: w20-575-80.mit.edu
Type and version: Ultra-5_10 8.4.25
Display type: m
Shell: /bin/athena/tcsh
Window manager: mwm
What were you trying to do?
compile a matlab C-mex file
What's wrong:
mex prints lots of warnings about parameter incomplete types. compiling apparently works in simple programs, but I'd like to make sure this will work with the more complicated c programs I have.
What should have happened:
No warnings printed. (Everything was ok). That's the way things used to be until a few weeks ago. The last time I used mex was july 3rd and everything was ok. I noticed this problem yesterday and I hoped it would go away today.
Please describe any relevant documentation references:
This happens with any C-mex source, even those downloaded from mathworks.com. For example compiling the program revord.c produces the following:
>> mex revord.c
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 170: warning: parameter has incomplete type: plhs
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 177: warning: parameter has incomplete type: prhs
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 316: warning: parameter has incomplete type: plhs
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 318: warning: parameter has incomplete type: prhs
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 336: warning: parameter has incomplete type: sub
"/mit/matlab_v5.3.1/distrib/extern/include/mex.h", line 347: warning: parameter has incomplete type: subs
"revord.c", line 25: warning: parameter has incomplete type: plhs
"revord.c", line 26: warning: parameter has incomplete type: prhs
>> a=revord('shhhhh')
a =
hhhhhs
what should have happened:
>> mex revord.c
>> a=revord('shhhhh')
a =
hhhhhs