MATLAB: Can anybody help me to solve the problem with mex instruction of “mld4bmf” library

mdl4bmf

CODE :
mex -Iasso-utils/ -largeArrayDims -O -v -output asso -DMATLAB ./asso.obj ./matlabasso.obj
ERROR:
Error using mex
Creating library D:\MLC_matlab\MLC_toolbox-master\MLC_toolbox-master\function\OutSource\mdl4bmf\asso.lib and object
D:\MLC_matlab\MLC_toolbox-master\MLC_toolbox-master\function\OutSource\mdl4bmf\asso.exp
matlabasso.obj : error LNK2019: unresolved external symbol mxErrMsgTxt referenced in function mexFunction
D:\MLC_matlab\MLC_toolbox-master\MLC_toolbox-master\function\OutSource\mdl4bmf\asso.mexw64 : fatal error LNK1120: 1
unresolved externals

Best Answer

You need to edit the matlabasso.c source file and replace the call to mxErrMsgTxt with mexErrMsgTxt.