unresolved external reference using matlab-generated library function

4 views (last 30 days)
Hi all,
A colleague created a matlab function exported as a C++ dll for integration into my Microsoft Visual C++ application. I'm having problems trying to link in the dependencies of the Matlab dll. Specifically, I receive unresolved external reference errors even though my project is set up to include the folder that contains all the .lib files:
C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v79\extern\lib\win32\microsoft
However I receive lots of link errors like this:
Error 20 error LNK2019: unresolved external symbol "extern "C" char const * __cdecl char_buffer_get_buffer_proxy(class char_buffer *)" (?char_buffer_get_buffer_proxy@@$$J0YAPBDPAVchar_buffer@@@Z) referenced in function "public: __thiscall mwString::operator char const *(void)const " (??BmwString@@$$FQBEPBDXZ) D:\Dev\MatlabTest\ConsoleApplication1\CompTestWrapper\TestWrapper.obj CompTestWrapper
Any thoughts on how to work around this issue? Thanks!

Answers (0)

Community Treasure Hunt

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

Start Hunting!