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

조회 수: 4 (최근 30일)
Peter Cotton
Peter Cotton 2011년 3월 15일
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에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by