mex files link error
Afficher commentaires plus anciens
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 commentaire
Geoff Hayes
le 30 Déc 2014
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.
Réponse acceptée
Plus de réponses (1)
Jan
le 30 Déc 2014
1 vote
Does your source file contain a mexFunction definition?
5 commentaires
Titus Edelhofer
le 6 Jan 2015
Hi Merve,
I hope the missing space in
const mxArray*prhs[]
is copy paste error?
Titus
Titus Edelhofer
le 6 Jan 2015
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
le 7 Jan 2015
In this case you should (re-)run "mex -setup" to configure the mex options.
Titus
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!