Re: Xcode 3.1, g++-4.2 and Debug building
Re: Xcode 3.1, g++-4.2 and Debug building
- Subject: Re: Xcode 3.1, g++-4.2 and Debug building
- From: Chris Espinosa <email@hidden>
- Date: Thu, 11 Sep 2008 11:22:52 -0700
On Sep 10, 2008, at 4:18 PM, David Nugent wrote: On 11/09/2008, at 12:30 AM, Sean McBride wrote:
On 9/10/08 9:47 AM, David Nugent said:
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/powerpc-apple-
darwin9/bits/c++config.h:79: error: current namespace 'std' does not
enclose strongly used namespace '__gnu_debug_def'
A google search explained why the problem occurs (_GLIBCXX_DEBUG is
not yet supported by the gcc 4.2 pre-release)
Nor the final 4.2 nor llvm-gcc-4.2.
Ok. Should Xcode 3.1's automatic generation of this define be considered a bug then?
Not really; the default for the project templates is gcc 4.0 and _GLIBCXX_DEBUG for Debug configurations, which succeeds; the underlying bug is the lack of STL debug mode for the 4.2 standard libraries, so when you explicitly use the 4.2 complier you have to explicitly remove the debug mode flag. , yet so far I've been
unable to track down exactly which build option will stop Xcode from
generating the -D_GLIBCXX_DEBUG option from the gcc command that
triggers the failure.
Xcode has no GUI for this setting. That flag should be somewhere in
your project or target settings.
Thanks. Manually removing them from the .pbxproj file does indeed fix it.
Many project templates set this in the Preprocessor Macros (GCC_PREPROCESSOR_MACROS) build setting. If you found it in the project file, it should be reasonably straightforward to see what build setting in what configuration at what level it was defined at; every build setting in the project file is exposed in the IDE... somewhere...
Chris |
_______________________________________________
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