undefined symbole '_mclIniti​alizeAppli​cation_pro​xy@8' reference in .c

9 views (last 30 days)
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?

Accepted Answer

Friedrich
Friedrich on 9 Apr 2013
Edited: Friedrich on 9 Apr 2013
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.

More Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!