• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >C++ debug problem with gcc 4.2 installed by Xcode 3.1 (From: Rhys Hill <email@hidden>)
 >Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1 (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Message bubbles causing textual problems (Xcode 3.1)
  • Next by Date: Re: Xcode 3.1: How to delete caches via CLI?
  • Previous by thread: Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
  • Next by thread: Xcode 3.1: How to delete caches via CLI?
  • Index(es):
    • Date
    • Thread