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

4 次查看(过去 30 天)
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;
}

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by