• 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
C++ debug problem with gcc 4.2 installed by Xcode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ debug problem with gcc 4.2 installed by Xcode 3.1


  • Subject: C++ debug problem with gcc 4.2 installed by Xcode 3.1
  • From: Rhys Hill <email@hidden>
  • Date: Sat, 12 Jul 2008 19:33:09 +0930

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.


Cheers,

--------------------------------------------------------------------------------
Rhys Hill,                                             email@hidden
Hons. Maths & Comp. Sci

Phone: +61 8 8303 6197 Mail:
Fax: +61 8 8303 4366 School of Computer Science
University of Adelaide
Adelaide, Australia
http://www.cs.adelaide.edu.au/~rhys/ 5005
--------------------------------------------------------------------------------



_______________________________________________ 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
  • Follow-Ups:
    • Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: Xcode 3.1, iPhone SDK, and NDA
  • Previous by thread: Re: type of accessor does not match the type of property
  • Next by thread: Re: C++ debug problem with gcc 4.2 installed by Xcode 3.1
  • Index(es):
    • Date
    • Thread