Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
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,

Réponse acceptée

Denis Gurchenkov
Denis Gurchenkov le 7 Fév 2022
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

Plus de réponses (0)


En savoir plus sur MATLAB Coder dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by