C-Mex Error: expected "..." or ","

2 ビュー (過去 30 日間)
Lance Randall Gamier
Lance Randall Gamier 2020 年 11 月 3 日
回答済み: Walter Roberson 2020 年 11 月 3 日
The Code that I entered for a C++ Matlab Extension file is:
#include "mex.h"
void mexFunction(int nlhs,
mxArray*plhs[]
int nrhs,
const mxArray*prhs[])
{
mexPrintf("Hello, mex!\n");
}
but it gives this error message:
error: expected ',' or '...' before 'int'
int nrhs,
^

採用された回答

Walter Roberson
Walter Roberson 2020 年 11 月 3 日
mxArray*plhs[] needs a comma after it

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWrite C Functions Callable from MATLAB (MEX Files) についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by