http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53324
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-11 15:34:49 UTC --- (In reply to comment #3) > Maybe some annotation for the linker could help here. Suggestions welcome. I don't see any way to do anything here. The docs say you need to recompile everything when defining _GLIBCXX_DEBUG. If you have a binary lib you can't recompile everything, so don't define _GLIBCXX_DEBUG. You can still use __gnu_debug::deque in specific places to get checking for individual containers, rather than defining the macro. That's how I use the Debug Mode containers when I can't recompile everything.