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 *
  1 件のコメント
Peter Cotton
Peter Cotton 2011 年 3 月 16 日
Silly me. Thank you kindly.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWrite 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