List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:December 5 2007 4:17pm
Subject:Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0
(Part 2) [SOLVED]
View as plain text  
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".
Thread
Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2)Graham Reitz4 Dec
  • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Graham Reitz5 Dec
    • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Graham Reitz5 Dec
    • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0(Part 2) [SOLVED]Warren Young5 Dec
      • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Jonathan Wakely5 Dec
        • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Graham Reitz5 Dec
          • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Jonathan Wakely6 Dec
          • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0(Part 2) [SOLVED]Warren Young6 Dec
            • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Graham Reitz6 Dec
              • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0Graham Reitz6 Dec
                • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0Graham Reitz7 Dec
                  • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0Graham Reitz7 Dec
                    • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0Graham Reitz7 Dec
              • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2) [SOLVED]Jonathan Wakely7 Dec
              • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0(Part 2) [SOLVED]Warren Young10 Jan
  • Re: Release works, Debug (still) crashes on OS X Leopard, Xcode 3.0 (Part 2)Jonathan Wakely5 Dec