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

4 vues (au cours des 30 derniers jours)
Peter Cotton
Peter Cotton le 15 Mar 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;
}

Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 15 Mar 2011
It should be:
mxArray* pm;
You're missing a *
  1 commentaire
Peter Cotton
Peter Cotton le 16 Mar 2011
Silly me. Thank you kindly.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by