Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
- Subject: Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
- From: "Chris Jefferson" <email@hidden>
- Date: Sat, 12 Jul 2008 20:39:03 +0100
2008/7/12 Chris Espinosa <email@hidden>:
> On Jul 12, 2008, at 3:03 AM, Rhys Hill <email@hidden> wrote:
>
>> Hi everyone,
>>
>> I've found the following problem. Given this code:
>>
>> #include <iostream>
>> int main(int argc, char** argv) {
>> std::cout << "Hello!" << std::endl;
>> return 0;
>> }
>>
>> compiled via
>>
>> g++-4.2 -D_GLIBCXX_DEBUG test.cpp -o test
>>
>> the following error occurs:
>>
>> /usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:79: error:
>> current namespace 'std' does not enclose strongly used namespace
>> '__gnu_debug_def'
>>
>> I've briefly compared this file to the 4.2 version on Linux, and it's
>> quite
>> different. Does anyone know of a solution to this problem? Debugging mode
>> is quite
>> useful when checking STL code.
>
> STL debug mode is not yet supported in gcc 4.2.
>
Just to point out, this only applies to apple's gcc 4.2. If you
install gcc 4.2 (or 4.3) from another source (macports, fink or
directly from source), debug mode works fine.
I do use a macports gcc for building command line applications and
have great success. I have no idea what would happened if you tried
using such a gcc in Xcode to build GUI applications.
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