You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to use std::stacktrace in a .dll whitch is loaded by LoadLibrary.
While I have followed the instruction from a previous issue #2779 and passed /PDBALTPATH:%_PDB% to link.exe for two binaries, the .pdb file fails to load correctly.
The current directory structure is:
The quick workaround is to make sure each pathless PDB is in the working directory. Also note that running within VS starts in ProjectDir instead of OutDir by default.
The quick workaround is to make sure each pathless PDB is in the working directory. Also note that running within VS starts in ProjectDir instead of OutDir by default.
for a .dll file loaded by LoadLobrary in a more complicated scenario (like Python extension), that's something tricky because sometimes I even don't know the cwd of .exe.
I'm going to use
std::stacktrace
in a.dll
whitch is loaded byLoadLibrary
.While I have followed the instruction from a previous issue #2779 and passed
/PDBALTPATH:%_PDB%
tolink.exe
for two binaries, the.pdb
file fails to load correctly.The current directory structure is:
sources of the two binaries is:
dll.cpp
test.cpp
head.h
And when I run
test.exe
, it prints something like:, indicating that
dll.pdb
is not loaded correctly (otherwise it should print the directory ofdll.cpp
).Since the document of
std::stacktrace
is missing, is there any solution?The text was updated successfully, but these errors were encountered: