C++ debug problem with gcc 4.2 installed by Xcode 3.1
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