libmwtbbhist.dll not found when using dynamic library in visual studio project

2 次查看(过去 30 天)
I generated .dll files for my functions using C++ as shown below.
I followed https://uk.mathworks.com/help/coder/ug/use-a-c-dynamic-library-in-microsoft-visual-studio-project.html#d123e57210 to build the C++ in visual studio 19 and it works ok with the example Foo function. I copied over my generated .dll files to the folder containing the executable.
However, when I add my function to the project, I cannot run it with error saying "A dependant dll was not found". It is missing libmwtbbhist.dll (and possibly more).
When I tried to copy the .dll into the folder containing the executable, I can only see libmwtbbhist.lib and copying the .lib does not work.
What would be the correct way to generate .dlls?
Thanks and regards,
Hein

采纳的回答

Denis Gurchenkov
Denis Gurchenkov 2022-2-7
On the last page in the MATLAB Coder UI, there is a "package" button in the top right part of the screen. If you click it, it would create a .zip file containing the generated C/C++ code, along with all the auxiliary files the code uses. Can you please check if libmwtbbhist.dll is included there?
If that does not work, you can copy libmwtbbhist.dll from matlab/bin/win64

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by