STL in debug mode?

From: Matthias (nospam_at_digitalraid.com)
Date: 01/31/05


Date: Mon, 31 Jan 2005 10:47:29 +0100

Hi,

I have just read in another thread (didn't want to hijack it) that STL
containers may operate more safe in "debug builds". Are we talking about
a debug build when the _DEBUG flag is set (on gcc)? I have grep'ed for
_DEBUG in all files of my STL implementation but couldn't come up with
anything.
How do I enable the STL to work in debug mode?

I am using the GNU C++ implementation, gcc 3.4.3.



Relevant Pages

  • Re: Replacement for MS STL?
    ... Here's one of the STL bugs things I found. ... to prepare this bug ... and the incompatibility between _DEBUG and NDEBUG builds is never mentioned. ... The functions in the CRT debug libraries are compiled with ...
    (microsoft.public.vc.stl)
  • Re: Execution time debug vs. release
    ... The cause fo this at least for us is the newly introduced STL ... debugging features that have been added in VS2005 C++ compiler. ... but when compiled in debug mode takes almost 40 seconds with 100% CPU ... speed with Task Manager showing 0% CPU time. ...
    (microsoft.public.vc.mfc)
  • Re: Run in debug mode with VS and Without. Difference?
    ... i am developping a multi-threaded DLL and using STL of VC++, ... So far i always compiled my code in debug mode... ... unexpected synchronization of threads when running under debugger ... depends on it), then for heap corruption, and if no corruption found, check also for ...
    (microsoft.public.vc.language)
  • Re: STL Slow - VS2005
    ... Debug builds are far slower than release builds, ... We compared the MS STL with stlport5.0 and found the results so ... output of our tester compiled under vs2005 comparing vs2005's stl with ... stlport 5.0's stl implementation. ...
    (microsoft.public.vc.stl)
  • Re: VC++2005b2: _DEBUG_ORDER() macro can change the complexity of algorithms
    ... I touted the new checked STL as a Good Thing, ... Instead of the normal two build configurations (debug & release), ... Use the DebugMax build for unit testing and other small-scoped testing (not ...
    (microsoft.public.vc.stl)