Closed tan-wei closed 3 years ago
AFAIK b2
does not define the _ITERATOR_DEBUG_LEVEL
by default. You can define it with something like this b2 install toolset=clang define=_ITERATOR_DEBUG_LEVEL=1
. If you want the _ITERATOR_DEBUG_LEVEL
to be set by default, please report an issue in this repo https://github.com/boostorg/build/ and provide motivation.
This is not a stacktrace issue, closing.
Maybe I find the reason:
BOOST_STACKTRACE_USE_WINDBG
should be predefined instead of BOOST_STACKTRACE_LINK
.
BTW, thanks for your reply.
I create a simple C++ project to try Boost.Stacktrace.: main.cpp:
The project uses CMake to compile and link:
It will cause link error with Clang or MSVC:
The mismatch
_ITERATOR_DEBUG_LEVEL
leads the failure. The meaning of_ITERATOR_DEBUG_LEVEL
is:Why the debug version of library of Boost.Stacktrace, which is
libboost_stacktrace_windbg_cached-clang11-mt-d-x64-1_75.lib
, has the value of 0 with_ITERATOR_DEBUG_LEVEL
? Is there anything wrong with my configure and build withBoost
? I use the command to configure and build withBoost
1.75.0:and
Thanks very much.