![]() |
Note that this flag changes the sizes and behavior of standard class templates such as std::vector, and therefore you can only link code compiled with debug mode and code compiled without debug mode if no instantiation of a container is passed between the two translation units. Because this is always the case between your custom debug.cc and libcwd, and most likely in many other cases-- libcwd enforces that every compilation unit that includes libcwd/debug.h uses the same mode.