I'm encountering few errors listed below. This happens when I try to run cpp code in matlab using mex command.
mesh.cpp(463) : error C2061: syntax error : identifier 'mxArray'mesh.cpp(466) : error C2601: 'main' : local function definitions are illegal mesh.cpp(464): this line contains a '{' which has not yet been matched
I'm doing it this way
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { int main(void) { <program content> } return; }
Is this the right way of doing it?
Thanks in advance
Best Answer