Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::asio cross-library link issue
From: Miloslav Marik (miloslav.marik_at_[hidden])
Date: 2016-10-04 06:32:43


Hi,

The problem is with --std=c++11. I posted similar problem several years
ago and kindly asked to state that asio builds with and
without cxxflags="-std=c++11" create classes with different ABI.
Add cxxflags="-std=c++11" to boost build.

Enjoy,
Slavek

2016-10-03 21:27 GMT+02:00 Stanley Friesen <friesens_at_[hidden]>:

> I managed to get the compiler options from the two builds. Other than -I
> options, there are few differences. None of them directly control structure
> packing. The PCL build has -fPIE (and also a matching -fPIC) and
> -DBOOST_DISABLE_ASSERTS. Our compile options include -mtune=<arch> (along
> with a matching -march), --std=c++11, -Dx86_64, and -g (though both have
> -O3
> as well).
>
> In typing this, it occurs to me the issue may be the --std=c++11. I will
> test that ASAP. (I already tested the -DBOOST_DISABLE_ASSERT to no effect).
>
>
>
>
> --
> View this message in context: http://boost.2283326.n4.
> nabble.com/boost-asio-cross-library-link-issue-tp4688567p4688571.html
> Sent from the Boost - Users mailing list archive at Nabble.com.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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