In Xcode 3.2.1 on Mac OS X Snow Leopard, I open a project under: Command Line Tool of type C++ stdc++. I have the following simple code:
#include
An easier way of accomplishing the same thing: paste these lines at the very beginning of your program (before any #include statements):
#define _GLIBCXX_FULLY_DYNAMIC_STRING 1 #undef _GLIBCXX_DEBUG #undef _GLIBCXX_DEBUG_PEDANTIC
Obviously, this will only affect the current project.