undefined symbole '_mclInitializeApplication_proxy@8' reference in .c
25 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Friedrich
2013-4-9
编辑:Friedrich
2013-4-9
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!