Error of the type unresolved external symbol
5 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
so i am trying to compile a MEX program on MATLAB, which contains C++ files as well.
I now experience this error:
uhd_functions.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl uhd::msg::register_handler(void (__cdecl*const &)(enum uhd::msg::type_t,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &))" (__imp_?register_handler@msg@uhd@@YAXAEBQ6AXW4type_t@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@Z) referenced in function "int __cdecl initUHD(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?initUHD@@YAHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
I am unable to make the head or tail of this eeror, let alone resolve it.
Can someone help me out?
Thanks a lot,
Vinayak Anant Karandikar
4 个评论
Aliza Abdul Gani Shaikh
2019-5-15
Hello Vinayak,
I could generate the mex file using uhd 3.10.
I have come across the same error while using UHD 3.14 version as there is a lack of msg.hpp in 3.14.
which version of uhd lib have you used?
Warm Regards,
Aliza
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!