Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
- Subject: Re: _GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC nuttiness causing debug build crashes...
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 14 Dec 2007 11:33:32 +0100
On 06.12.2007, at 05:14, Graham Reitz wrote:
When D_GLIBCXX_DEBUG is defined in the project and linking against
libraries that are not compiled with D_GLIBCXX_DEBUG you get
undefined behavior (and passing around stl containers). So when
Xcode adds that by default (a good thing) it was causing
unpredictable behavior when the debug build ran.
http://gcc.gnu.org/onlinedocs/libstdc++/debug.html#safe
Ouch.. Yes, I had that one also when debugging something with 25+ sub-
libraries.
It's a pity in 2007 we still have to manually check if libraries are
compiled with compatible settings.
Really strikes me there is no "compile assumption" section in the
objects that only contains used features (e.g. 1 byte vs. int size
bool values but only when bools are used) and sanity checks when
linking.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden