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

5 visualizzazioni (ultimi 30 giorni)
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;
}

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 15 Mar 2011
It should be:
mxArray* pm;
You're missing a *

Più risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by