【发布时间】:2013-02-22 13:46:25
【问题描述】:
我是在 linux 上开始 mex,所以我从下面这个小代码开始并尝试编译:
#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
mxArray *inputArrayData; // array for input array pointers
}
但是我的编译结果是:
>> mex firsttry.c
firsttry.c: In function ‘mexFunction’:
firsttry.c:5: error: expected expression before '/' token
我尝试了其他一些东西,似乎在涉及 matlab 数据和函数定义的所有行都会出现这个“预期表达式”错误。这里可能出了什么问题?
【问题讨论】:
标签: matlab error-handling compiler-errors mex