Linker error 2019 while compiling mex on matlab 2015b 64bit
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anna Shtengel
am 5 Jan. 2016
Beantwortet: mariem jebri
am 24 Aug. 2016
Hi, I'm using Matlab2015b 64bit with compiler of Microsoft Visual C++ 2015. I'm trying to create a mex having a c interface funtction which calls a function myfunc_cpp inside, which is in the same folder:
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]);
which is in the file mymexfilefunc.cpp. The matlab command I used:
mex mymexfilefunc.cpp
I don't think I missed any libs. I got the following error:
Error using mex Creating library mymexfilefunc.lib and object mymexfilefunc.exp mymexfilefunc.obj : error LNK2019: unresolved external symbol "void __cdecl myfunc_cpp(...)" ...referenced in function "void __cdecl mexFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)"... mymexfilefunc.mexw64 : fatal error LNK1120: 1 unresolved externals
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
mariem jebri
am 24 Aug. 2016
hi can someone plz help me adding visual studio 2012 compiler to matlab 2015b ? tnx
0 Kommentare
Siehe auch
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!