Problem with mex file
yixiaodafang at gmail.com
Fri Sep 8 20:05:24 CDT 2006
I use the mkoctfile --mex to compile the c code and it works great. Thanks.
However, when I run the code with fewer input, it will cause segment fault.
It is caused by function mxGetPr. For example, if in the c code, I have
px=mxGetPr(pRhs). But I only passed 2 parameters, this will cause segment
fault. I fix this by changing my c code. But I just want to point it out
since in Matlab it works.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Help-octave