Graham Reitz wrote:
When you create a C++ Command Line Tool project in Xcode 3.0 it adds the
following preprocessor defines:
_GLIBCXX_DEBUG=1 _GLIBCXX_DEBUG_PEDANTIC=1
When these are there it crashes in debug mode.
The mighty Google says these flags turn on internal debugging within the
standard libraries, or at least within STL.
It may be that you have to use these flags for all modules within the
project, which wouldn't happen if you're building MySQL++ using the
standard configure && make && make install pattern.
If you did indeed build MySQL++ this way, try this:
$ cd /mysqlpp/directory
$ make clean
$ ./configure CXXFLAGS="_GLIBCXX_DEBUG=1 _GLIBCXX_DEBUG_PEDANTIC=1"
$ make && sudo make install
This would be the "debug version" you sought after earlier, though there
is no way to distinguish it from a release version from the outside.
Even if I set the to =0 it still crashes.
Clearly some code is using #if defined(X) or #ifdef X instead of #if X
to decide whether this flag is "on".