error C2079: 'pm' uses undefined struct 'mxArray_tag'

4 visualizaciones (últimos 30 días)
Peter Cotton
Peter Cotton el 15 de Mzo. de 2011
I am clearly missing something silly here because I get the compiler error C2079: 'pm' uses undefined struct 'mxArray_tag'
#include <math.h>
#include <string.h>
#include <iostream>
#include "mex.h"
#include "matrix.h"
void sample(mxArray* X,mxArray* Y){
// does nothing
mxArray pm;
}

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 15 de Mzo. de 2011
It should be:
mxArray* pm;
You're missing a *

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

Community Treasure Hunt

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

Start Hunting!

Translated by