Re: libc++ vs. libstdc++ usage in the ports tree

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Thu, 14 Nov 2013 06:45:55 -0800
On Thu, Nov 14, 2013 at 09:54:52AM +0000, David Chisnall wrote:
> On 13 Nov 2013, at 19:40, Dimitry Andric <dim_at_freebsd.org> wrote:
> 
> > On the other hand, different C++ standard libraries simply cannot be
> > mixed.  The internal implementations are usually completely different.
> > This is not really news at all, certainly not to the ports people. :-)
> 
> That said, it should still be possible to mix them in different
> libraries.  The constraint from the wiki still applies: if you
> don't use STL types at library boundaries, then it should still
> work.  If you do, then the libc++ and libstdc++ symbols will be
> mangled differently and so you will get link-time errors.
> 
> In theory, if it links it should run...
> 

And in practice, it is broken.

http://lists.freebsd.org/pipermail/freebsd-current/2013-November/046565.html

QED

-- 
Steve
Received on Thu Nov 14 2013 - 13:45:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:44 UTC