MDP_Tracking icon indicating copy to clipboard operation
MDP_Tracking copied to clipboard

fatal error LNK1561 when I run compile.m

Open Ali0Li opened this issue 7 years ago • 1 comments

(windows 7, VS 2013, matlab R2013a) when I run compile.m, it displays: LINK : fatal error LNK1561: entry point must be defined D:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Compile of 'lk.cpp' failed. So, how can I solve this problem? why does this error happen? the function "mexFunction" in lk.cpp is the entry point, right? Thank you so much!

Ali0Li avatar Mar 09 '17 08:03 Ali0Li

I comment these lines in lk.cpp: // #ifdef _CHAR16T // #define CHAR16_T // #endif because CHAR16_T will be defined in D:\program files\MATLAB\R2013a\extern\include\tmwtypes.h after that, which will cause an error. I don't think this is the issue, right?

Ali0Li avatar Mar 09 '17 08:03 Ali0Li