MATLAB: Error using mex (mxErrMsgTxt)

mexmingw64 compilermxerrmsgtxttext+0x371

I have a error when run this code of mdl4bmf package:
CODE: mex -Iasso-utils/ -largeArrayDims -O -v -output asso -DMATLAB ./asso.obj ./matlabasso.obj
ERROR: Error using mex ./matlabasso.obj:matlabasso.c:(.text+0x371): undefined reference to `mxErrMsgTxt' collect2.exe: error: ld returned 1 exit status
Please help me to solve this problem, OS win10 , matlab version 2017a

Best Answer

Source code typo. The function name is mexErrMsgTxt, not mxErrMsgTxt.
Related Question