MATLAB: Undefined symbole ‘_mclIniti​alizeAppli​cation_pro​xy@8’ reference in .c

cviMATLAB Runtime Servermclmcrrt

hello,
I want to integrate a dll compiled with matlab in a labwindowsCVI project. i have installed matlab runtime r2012b on my pc and add the dll library, mclmcrrt.lib and paths of .h files to the project. I have also included paths « C:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\extern\include » and « C:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\extern\lib\win32\microsoft » to the project.
when compile the project i got this project link error: undefined symbole '_mclInitializeApplication_proxy@8' reference in .c
in mclmcrrt.h i found this #undef mclInitializeApplication #define mclInitializeApplication mclInitializeApplication_proxy
i do include mclmcrrt.h in file .c, could anyone help me with this problem?

Best Answer

Hi,
specifying the path to the lib file is not enough. You need to explcitly state the mclmcrrt.lib for the linker and also the .lib file generated by MATLAB Compiler. There should be a project setting for the linker in which you can specify additional dependencies/libraries. Not sure how it is named in labview.