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

 Respuesta aceptada

James Tursa
James Tursa el 17 de Ag. de 2017

3 votos

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

4 comentarios

morteza shafizah
morteza shafizah el 18 de Ag. de 2017
I Haven't any mexErrMsgTxt Function!!!!
<<
>>
morteza shafizah
morteza shafizah el 18 de Ag. de 2017
the Screen ofmy this Error
James Tursa
James Tursa el 18 de Ag. de 2017
The error message is a linker error. It means that the compiled code has referenced a function called mxErrMsgTxt, but the linker cannot find any such function in the object code or libraries that are being linked.
So, look in the source code matlabasso.c for a call to mxErrMsgTxt and change that call to mexErrMsgTxt.
morteza shafizah
morteza shafizah el 19 de Ag. de 2017
Thanks a lot
in the line 122 of matlabasso.c file replace mexErrMsgTxt with mxErrMsgTxt and mex compile successfuly.

Iniciar sesión para comentar.

Más respuestas (1)

Nadin Mari
Nadin Mari el 1 de Feb. de 2018

0 votos

In Matlaqb R2017b change mxErrMsgTxt to mexErrMsgTxt.

Preguntada:

el 17 de Ag. de 2017

Respondida:

el 1 de Feb. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by