C-Mex Error: expected "..." or ","

3 visualizaciones (últimos 30 días)
Lance Randall Gamier
Lance Randall Gamier el 3 de Nov. de 2020
Respondida: Walter Roberson el 3 de Nov. de 2020
The Code that I entered for a C++ Matlab Extension file is:
#include "mex.h"
void mexFunction(int nlhs,
mxArray*plhs[]
int nrhs,
const mxArray*prhs[])
{
mexPrintf("Hello, mex!\n");
}
but it gives this error message:
error: expected ',' or '...' before 'int'
int nrhs,
^

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Nov. de 2020
mxArray*plhs[] needs a comma after it

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by