Reputation: 11
Creating library C:\Users\maskamal\AppData\Local\Temp\mex_3XVWAG\templib.x and object C:\Users\maskamal\AppData\Local\Temp\mex_3XVWAG\templib.exp miqp_cplex.obj : error LNK2019: unresolved external symbol __imp_CPXcloseCPLEX referenced in function miqp miqp_cplex.obj : error LNK2019: unresolved external symbol __imp_CPXfreeprob referenced in function miqp miqp_cplex.obj : error LNK2019: unresolved external symbol __imp_CPXgetmipitcnt referenced in function miqp miqp_cplex.mexw64 : fatal error LNK1120: 21 unresolved externals
Since it fail to locate "ilcplex\cplex.h", I add full path
Any hints to solve my problem are welcomed.
Upvotes: 1
Views: 710
Reputation: 1
I could solve it partly. I could compile by adding the path of library with mex command. However, when I run the mex file: miqp_cplex it says: Invalid MEX-file 'C:\Users\maskamal\Documents\MATLAB\MexCplex80\miqp_cplex.mexw64': 指定されたモジュールが見つかりません。(translation from japanese: indicated module is not found)
My Matlab R2011a and Cplex122
Upvotes: 0