help-octave
[Top][All Lists]
Advanced

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

Re: lasterror (stack.name)


From: Søren Hauberg
Subject: Re: lasterror (stack.name)
Date: Thu, 05 Jun 2008 09:18:26 +0200

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



reply via email to

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