返回信息流>> mex square.c
Specified export _mexFunction is not defined
Missing exports. Aborting
C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Link of 'square.mexw32' failed.
??? Error using ==> mex at 207
Unable to complete successfully.
说是有中文注释,我没有中文注释啊。。。。
是什么问题?
///////////下面是代码
#include"mex.h"
long square(int a)
{
long out ;
out = a*a ;
return out ;
}
void mexfunction( int nlhs , mxArray *plhs[],
int nrhs ,const mxArray *prhs[] )
{
long *out ;
int n ;
out = mxGetPr(plhs[0]);
n = mxGetScalar(prhs[0]);
*out= square( n );
}
这是一条镜像帖。来源:北邮人论坛 / matlab / #7837同步于 2011/1/18
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖
mex: export _mexFunction is not defined?
hero06
2011/1/18镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复