[Libpqxx-general] Fix for libpqxx-3.0.0 under Mac OSX 10.5.2 and Xcode 3.0

Matthew Fanto mfanto at gmail.com
Sat Aug 9 04:40:26 UTC 2008


On 8/9/08, Jeroen Vermeulen <jtv at xs4all.nl> wrote:
> Matthew Fanto wrote:
>
>>  Rather then turning this feature off for each project, libpqxx can be
>> built
>> to correctly work with these flags enabled. I was able to reproduce the
>> crash on the test apps (provided by libpqxx), and then by adding
>> GLIBCXX_DEBUG=1 to the library build, the test apps worked correctly.
>
> Thanks for following up on this.  What amazes me is that apparently the
> library was built with that option, and the tests were built without it!
>

My isp is down so I am responding on my phone so ill keep it short.
Just to clarify when I said the test apps worked I meant that they
worked with the default xcode flags. In all cases the test apps were
built with GLIBCXX_DEBUG.

The summary is building the library with the flags meant everything
worked with the default xcode setup.
> Are both builds using the makefiles generated by the configure script?
> Or is the development environment making up its own compiler command
> lines for one of the two?  Normally you'd set an option like this in
> CXXFLAGS or LDFLAGS etc, run ./configure, and then build.  To change the
> option, you'd run ./configure again and everything would then build with
> the changed options.
>
>
> Jeroen
>

All I did was hand edit the makefiles to add the flags for everything
within libpqxx. I think I was unclear originally. See above and I can
write up more detailed when my connection is back.

-Matt


More information about the Libpqxx-general mailing list