mr-edd.co.uk :: horsing around with the C++ programming language

_GLIBCXX_DEBUG is broken on Apple's GCC 4.2

[11st August 2011]

Upgraded to Lion recently and hit this issue rather quickly. Just slapping it here for those Googling around the issue. The definition of _GLIBCXX_DEBUG seems to affect the C++ standard streams particularly badly.

More: https://discussions.apple.com/message/10244440?messageID=10244440#10244440?messageID=10244440

EDIT: specifically it appears to occur when building against the 10.6 and 10.7 SDKs

I've also had some trouble with the XCode 4's ar and the compiler also issues lots of annoying warnings about the inability to "add line info to anonymous symbol"s.

Somewhat underwhelmed by both Lion and XCode 4's tools so far :/

Comments

(optional)
(optional)
(required, hint)

Links can be added like [this one -> http://www.mr-edd.co.uk], to my homepage.
Phrases and blocks of code can be enclosed in {{{triple braces}}}.
Any HTML markup will be escaped.