help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong type argument error from compiled mex function


From: Paul Koufalas
Subject: Wrong type argument error from compiled mex function
Date: Sat, 01 Jul 2006 00:21:10 +0930
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)

G'day all

I successfully compiled a 3rd party MEX function (bound constrained
global optimisation code) using Octave's mex utility.

However, I get this error message when trying to use the compiled function:

error: octave_base_value::matrix_value(): wrong type argument `int32 matrix'
error: octave_base_value::matrix_value(): wrong type argument `int16 matrix'
error: octave_base_value::matrix_value(): wrong type argument `int16 matrix'

Depending on the arguments I pass to it (standard optimisation test
functions and bounds), I either get the Octave prompt or a seg fault and
the Bash prompt.

I'm not sure where to start looking for the offending MEX function
code...nothing in the MEX function code stands out to me.

Advice appreciated.

Cheers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]