|
Boost Users : |
Subject: Re: [Boost-users] boost::asio cross-library link issue
From: Miloslav Marik (miloslav.marik_at_[hidden])
Date: 2016-10-05 03:11:54
Hi,
As far as I can remember, the complete problem with asio ABI compatibility
sits in the asio/detail/atomic_count.hpp and the problem is different size
of std::atomic<long> and boost::detail::atomic_count. You may probably use
BOOST_ASIO_DISABLE_STD_ATOMIC option to make non c++11 ASIO and c++11 ASIO
ABI compatible but I never tested it. We strictly use c++11.
Best Regards,
Slavek
2016-10-04 20:51 GMT+02:00 <friesens_at_[hidden]>:
>
>
>
> From: Maarten de Vries <maarten_at_[hidden]>
> To: boost-users_at_[hidden],
> Date: 10/04/2016 01:42 PM
> Subject: Re: [Boost-users] boost::asio cross-library link issue
> Sent by: "Boost-users" <boost-users-bounces_at_[hidden]>
> ------------------------------
>
>
>
>
>
> On 4 October 2016 at 14:00, Stanley Friesen <*friesens_at_[hidden]*
> <friesens_at_[hidden]>> wrote:
> Sigh. I thought so. I am having a dickens of a time getting libpcl to
> compile with the --std=c++11 flag. It seems that libvtk, used heavily by
> PCL, doesn't like C++11. (We can't compile our library without the flag
> since we actually use many C++11 features). I will continue to work on
> this.
>
> Thanks, this discussion has at least pointed me in the direction I need to
> go.
>
>
> âI have no problem compiling PCL 1.8.0 and VTK 7.0.0 with C++11 support .
> In the past VTK 6 (not sure on the exact version) and PCL 1.7.2 also worked
> fine.
>
> The VTK wiki seems to indicate VTK 6.1 is compatible with C++11 [1].
>
> Maybe it is an issue with the compiler you're using. Some GCC versions had
> incomplete C++11 support iirc.
>
> --------------------
> Quite right, as soon as I got VTK 7.0, the PCL library compiled fine (we
> only had 5.8 and 6.0 until earlier today). Now my problem is purely with
> our own library.
>
> VTK 6.0 still had the issue in vtkMath.h where it used 'using namespace
> std' and then tried to call isinf or isnan. VTK7.0 correctly omits the
> using directive and calls std::isinf and std::isnan. It is possible this
> was actually fixed in 6.2 or 6.3.
>
> [1] *http://www.vtk.org/Wiki/VTK/Wrapping_C%2B%2B11_Code[vtk.org]*
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK_Wrapping-5FC-252B-252B11-5FCode&d=CwMFaQ&c=NGt3eTFKeC-HdGM3w9bJ1g&r=LzeLSpERL2klp086VczAzWzdVVuGtagGieCKbYxUQuw&m=lFTX63uRKR2F6syYk4L52XjxMHeJedZ92ln-U8YvNWs&s=F1uSMeEIrgHyu8p1LHNn_uwWVsaBpUqeq5nTccbDx-U&e=>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.
> boost.org_mailman_listinfo.cgi_boost-2Dusers&d=CwICAg&c=
> NGt3eTFKeC-HdGM3w9bJ1g&r=LzeLSpERL2klp086VczAzWzdVVuGtagGieCKbYxUQuw&m=
> lFTX63uRKR2F6syYk4L52XjxMHeJedZ92ln-U8YvNWs&s=NDMVH-y9ExBtqecshUXWCShs_
> v51sUpH6UIsCG_oMrw&e=
> ------------------------------
> This is an e-mail from General Dynamics Land Systems. It is for the
> intended recipient only and may contain confidential and privileged
> information. No one else may read, print, store, copy, forward or act in
> reliance on it or its attachments. If you are not the intended recipient,
> please return this message to the sender and delete the message and any
> attachments from your computer. Your cooperation is appreciated.
> &&
>
> _______________________________________________
> 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