Error using mex
   Creating library example_mex_function.lib and object example_mex_function.exp
example_mex_function.obj : error LNK2019: unresolved external symbol utIsInterruptPending referenced in function "void __cdecl dlib::check_for_matlab_ctrl_c(void)" (?check_for_matlab_ctrl_c@dlib@@YAXXZ)
example_mex_function.mexw64 : fatal error LNK1120: 1 unresolved externals

 

이런 에러가 떠서 검색하여 아래와 같이 하니 됐다.

 

mex -O "example_mex_function.cpp" -I"D:\Research\dlib\dlib-19.0" "C:\Program Files\MATLAB\R2016a\extern\lib\win64\microsoft\libut.lib"

Posted by uniqueone
,