mex files link error
显示 更早的评论
i use matlab 2013 x32 and visual studio 2008 sp1 but every time i get this fatal error.
LINK : error LNK2001: unresolved external symbol mexFunction
...mex_ZIBcNM\templib.x : fatal error LNK1120: 1 unresolved externals
D:\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'libqp_gsmo.mexw32' failed.
1 个评论
Geoff Hayes
2014-12-30
Merve - please provide some context surrounding this error. What are you executing that result in this error message? If you are building a MEX file from the Command Window, then please include this statement.
采纳的回答
更多回答(1 个)
Jan
2014-12-30
1 个投票
Does your source file contain a mexFunction definition?
5 个评论
Titus Edelhofer
2015-1-6
Hi Merve,
I hope the missing space in
const mxArray*prhs[]
is copy paste error?
Titus
Titus Edelhofer
2015-1-6
Hi Merve,
I just tried your function (commenting out all libqp stuff). Worked fine. Please compile using "-v" to see if something else went wrong before ...
Titus
Titus Edelhofer
2015-1-7
In this case you should (re-)run "mex -setup" to configure the mex options.
Titus
类别
在 帮助中心 和 File 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!