Matlab shared library Visual Studio .pdb error

조회 수: 4 (최근 30일)
Ogulcan Isitman
Ogulcan Isitman 2020년 6월 15일
댓글: Samuel Gray 2021년 10월 7일
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