[18690] in Athena Bugs

home help back first fref pref prev next nref lref last post

linux 8.4.17: matlab

daemon@ATHENA.MIT.EDU (Jonathan A Kane)
Thu Jan 25 16:14:50 2001

Message-Id: <200101252114.QAA20698@explorer.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 25 Jan 2001 16:14:37 -0500
From: Jonathan A Kane <jakane@MIT.EDU>

System name:		explorer.mit.edu
Type and version:	i686 8.4.17
Display type:		XFree86 3.3.6 SVGA

Shell:			/bin/athena/tcsh
Window manager:		mwm

What were you trying to do?
Compile a mex function with matlab 6.0.0

What's wrong: 
I previously sent a message describing how matlab would
crash when I ran a mex file that I compiled on matlab 5.3.  It was
suggested to me that the problem was fixed for matlab 6.0.0 and that I
should use it instead.  With matlab 5.3 I could compile a sample mex
file with the command "mex yprime.c" but I got a segmentation
violation when I attempted to run it.  With matlab 6.0.0 yprime.c
fails to compile and I get the following error:

>> mex yprime.c
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:30,
                 from /mit/gnu/arch/i386_linux22/lib/gcc-lib/i686-pc-linux-gnu/2.95/include/limits.h:117,
                 from /mit/gnu/arch/i386_linux22/lib/gcc-lib/i686-pc-linux-gnu/2.95/include/syslimits.h:7,
                 from /mit/gnu/arch/i386_linux22/lib/gcc-lib/i686-pc-linux-gnu/2.95/include/limits.h:11,
                 from /mit/matlab_v6.0.0/distrib/extern/include/tmwtypes.h:35,
                 from /mit/matlab_v6.0.0/distrib/extern/include/matrix.h:154,
                 from /mit/matlab_v6.0.0/distrib/extern/include/mex.h:32,
                 from yprime.c:18:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory

    mex: compile of 'yprime.c' failed.

??? Error using ==> mex
Unable to complete successfully


What should have happened:
It should have created a file yprime.mexlx

Please describe any relevant documentation references: 
The example file I am using is found in
/afs/athena.mit.edu/software/matlab_v6.0.0/distrib/extern/examples/mex

It is described on page 2-5 of the matlab Application Programming
Interface guide. 



home help back first fref pref prev next nref lref last post