[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lasterror (stack.name)
From: |
gOS |
Subject: |
Re: lasterror (stack.name) |
Date: |
Mon, 9 Jun 2008 06:06:49 -0700 (PDT) |
Well it is certainly slightly different as message would have been 'error:
moo: This is an error message'
The identifier works, but I'm interested in what the stack actually contains
if anything. I'm assuming its a 1x1 empty array
Søren Hauberg wrote:
>
> Then I get
>
>>> moo
>
> ans =
>
> message: 'This is an error message.'
> identifier: 'component:mnemonic'
> stack: [1x1 struct]
>
>
> Hope it helps,
> Søren
>
> tor, 05 06 2008 kl. 06:39 -0700, skrev gOS:
>> foo.c (forgot the include statement). Compiles with octave mex compiler.:
>>
>> #include "mex.h"
>>
>> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray
>> *prhs[])
>> {
>> mexErrMsgIdAndTxt("component:mnemonic","This is an error message.");
>> }
>>
>>
>>
>> Søren Hauberg wrote:
>> >
>> > ons, 04 06 2008 kl. 09:25 -0700, skrev gOS:
>> >> foo.c
>> >>
>> >> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray
>> >> *prhs[])
>> >> {
>> >> mexErrMsgIdAndTxt("component:mnemonic","This is an error message.");
>> >> }
>> >
>> > I tried compiling this in Matlab 7.4.0.129 (R2007a) using 'mex foo.c',
>> > and I got:
>> >
>> > foo.c:1: error: expected declaration specifiers or '...' before
>> > 'mxArray'
>> > foo.c:1: error: expected ';', ',' or ')' before '*' token
>> >
>> > mex: compile of 'foo.c' failed.
>> >
>> > ??? Error using ==> mex at 206
>> > Unable to complete successfully.
>> >
>> > So, either you need to provide instructions on how to compile this, or
>> > you need to check that the code you sent actually is compilable.
>> >
>> > Søren
>> >
>> > _______________________________________________
>> > Help-octave mailing list
>> > address@hidden
>> > https://www.cae.wisc.edu/mailman/listinfo/help-octave
>> >
>> >
>>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>
--
View this message in context:
http://www.nabble.com/lasterror-%28stack.name%29-tp17647642p17732409.html
Sent from the Octave - General mailing list archive at Nabble.com.
- lasterror (stack.name), gOS, 2008/06/04
- Re: lasterror (stack.name), gOS, 2008/06/04
- lasterror (stack.name), John W. Eaton, 2008/06/04
- Re: lasterror (stack.name), gOS, 2008/06/04
- Re: lasterror (stack.name), John W. Eaton, 2008/06/04
- Re: lasterror (stack.name), gOS, 2008/06/04
- Re: lasterror (stack.name), Søren Hauberg, 2008/06/05
- Re: lasterror (stack.name), gOS, 2008/06/05
- Re: lasterror (stack.name), Søren Hauberg, 2008/06/08
- Re: lasterror (stack.name),
gOS <=
- Re: lasterror (stack.name), Søren Hauberg, 2008/06/09
- Re: lasterror (stack.name), John W. Eaton, 2008/06/10