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
From: Maarten de Vries
To: boost-users@lists.boost.org, Date: 10/04/2016 01:42 PM Subject: Re: [Boost-users] boost::asio cross-library link issue Sent by: "Boost-users" ------------------------------ On 4 October 2016 at 14:00, Stanley Friesen <*friesens@gdls.com*
> 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@lists.boost.org 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users