Boost logo

Boost Users :

Subject: Re: [Boost-users] Segfaults w/ Program_options in __run_exit_handlers :gcc45
From: Andrew Holden (aholden_at_[hidden])
Date: 2011-11-18 10:22:18


On Thursday, November 17, 2011 6:28 PM, Keith Gunderson wrote:
*snip*
> 4: Segfaults occur when APP->LIB is dynamic while APP->Boost
> and LIB->Boost are linked statically.

This is a known dangerous setup. Not just with Boost, but with any
library. The problem happens because APP and LIB each have their own
copy of Boost, which violates the one definition rule.

It is best to not mix static and dynamic linking in the same project.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net