Matlab shared library Visual Studio .pdb error

3 次查看(过去 30 天)
Hi,
I write a matlab function which includes fmincon function then using the following command line "mcc -W cppLib:fmincon_lib -T link:lib f_min_con.m" I generated dll files to use them in Visual studio. I receive following error:
libmwbinder.pdb not loaded.
libmwbinder.pdb contains the debug information required to find the source for the module libmwbinder.dll
I have no problem with initializing the libraries and functions and when I try a basic function like sum of the two numbers it works with no problem.
Can you help me with this issue?
Thanks!
  1 个评论
Samuel Gray
Samuel Gray 2021-10-7
AFAIK the .pdb files that correspond to the dlls are only required when debugging the program in VS. If you don't need to debug the code then just set an exception for the specific pdb file in the VS options. Tools-options-debugging-symbols at least in VS2015, if you get a "no symbols loaded" page with the various links on it, even better.
The "cache symbols in this directory", or something similar perhaps with a different user directory, may hold the .pdb file that you're looking for.
Mine is set to:
c:\users\user\AppData\Local\Temp\SymbolCache and often I find them using the internet search tool in vs15, mostly from MS itself I guess. Anyway right below that there's an option to "Specify excluded modules".

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by