Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc
- Date: Fri, 15 Jan 2021 06:00:31 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:bJ18mBSxYPVt3imQ5ngBLeyFbdpsv+yvbD5Q0YIujvd0So/mwa67ZRGBt8tkgFKBZ4jH8fUM07OQ7/mxHzRZqsjb+DBaKdoQDkBD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2agMu4zf299IPOaAtUmjW9falyLBKrpgnNq8Uam4RvJrs1xxfTvndEZutayGJ2KVmOmxrw+tq88IRs/ihNuf8t7dJMXbn/c68lUbFWETMqPnwv6sb2rxfDVwyP5nUdUmUSjBVFBhXO4Q/5UJnsrCb0r/Jx1yaGM8L4S7A0Qimi4LxwSBD0kicHNiU2/3/Rh8dtka9UuhOhpxh4w47JfIGYMed1c63Bcd8GQ2dKQ8BcXDFDDIyhdYsCF/cPM/hWr4f9pFUAoxWxCgauC+zzxTFFnWP20K4g3ug9DQ3L0ggtEtQTu3rUttX1M6ISXPi7wKfV0zrMdOlZ2Szh6IjJbB8hp+yHU7R3ccrLyEkvEB/FhUiUpYLkITyV0eENvHaH7+p6VeOhi3QopB1tojio3MctiozFiowIwV3D7iV5xIE1Jce5SE58fd6oCp5QtyWBOot5R8MtWWBouCIgxrIavp67eTEHxZI6zBHQd/KJaZKH4g7/VOmPOzd4gmpodbOxihqs7UWtyuzxW8223VtLsydJjNnCu3AP2hDP9MWJSuVx8Em91DqRyQ3f9+NJL0ApmKfVNZIs3KM8m5gTv0nFAyT4lkL2jKqMeUUl/Oil8+vnYrT6pp+cKo97kRvyPbgpmsy6Geg4Mw4OX3Ka+eumzrHj81f5TbNXhfM1iqnUqI7WKdgfq6KjAAJY0pwv5wihAzu7ytgVknoKIEpbdB2dk4TlJlTDL+7kAfilhlmhnylkyvTDM73vH5nAIWTPnbLucLtz6ENQ1Q8+wstf6p1PFL4MJfH+VVLsuNHZCxI5PRG4zPz6B9h7y4gQQ3iAArWDP6PXqVKI5vwgI+2LZIINvTbyMfkl5/r3gX43g18RYLCl3ZUYZX27BPhmLEKZYX3jgtcFD2gGpBYxTOvviFGaUD5TYWi9X74k6z0lFI6rCZ3PS4OtjbCbwiu3AIBaanpJB12PCXvocp+LW/YIaCKcOM9hlTkEWKC6S48l0hGurg76y717LubO/y0YsYnu1Ndw5+LJlBEy8SZ4ANia02GIV210hH8HRycq3KBjpkxw0kuM0adijPxcDNBc+vJJUhwmOp7B1Ox6EMv/WhnBf9eMUFapWM+qATA3TtIrwt8BeVxxG9u4jkOL4iyxHrVAl6CXHIdmteXHzn3pLoB8zWzH3e8vlR49U85XPCqngKB4sAPcDoqMn0SCnLuxbvch2jXQ/luO3XbbvF1ESBUiFuLeTHUHbw3Xq8747wXMVfi1GLE/O0xAz8CFbaBFY9msgVRdT+r4I4fiZDe6lG60QBqJ3biRd5HCemMH3SybBlJXvRoU+CPMDgU0Dzy9om/YRBhpD1Pofwus3uR5rX6nVF4axgqWaFdwlvD9rgURguadTO9V27YstyIoqjEyF1G4iYGFQ+GcrhZsKf0PKeg2501KgDqA6l5Ne6e4JqUnvWYwNgR6u0S0ikdyA4RE1Ncw9TYkkFo0JqWf31dMMTif2MKoY+GFGizJ5BmqLpXu9BTGyt/Po/UA7f05rxPouwT7ThNzoUUi6MFc1j6n3ruPCQMTVZzrVUNurkp1orjbZm824IaGjHA=
This issue is addressed in https://github.com/CGAL/cgal/pull/5152
I think a workaround that does not imply merging the PR is to add
#include <boost/bind/placeholders.hpp>
using boost::placeholders::_1;
using boost::placeholders::_2;
using boost::placeholders::_3;
before including any CGAL code.
HTH,
Sebastien.
On 1/14/21 5:55 PM, Filippo ( via cgal-discuss Mailing List) wrote:
Hello
I am trying to link CGAL to my software. I cannot compile neither CGAL 5.2 (git branch 5.2.x-branch) nor CGAL 5.1 (git branch 5.1.x-branch) with Boost 1.75 and mpicc/mpiccx (openmpi/4.0.2 and gcc-4.8.5). My software exploits libmesh to compute mesh intersection via CGAL.
The error I get concerns the placeholders and it is apparently a current issue with CGAL/Boost interfacing
/$locinst/cgal/include/CGAL/convex_hull_3.h: In function 'typename std::__cxx11::list<Point>::iterator CGAL::Convex_hull_3::internal::farthest_outside_point(Face_handle, std::__cxx11::list<Point>&, const Traits&)':
$locinst/cgal/include/CGAL/convex_hull_3.h:579:67: error: '_1' was not declared in this scope
579 | boost::bind(less_dist_to_plane, plane, _1, _2));
| ^~
///$locinst///cgal/include/CGAL/convex_hull_3.h:579:67: note: suggested alternatives:
In file included from $locinst/boost/include/boost/mpl/aux_/include_preprocessed.hpp:37,
...
$locinst/boost/include/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp:29:16: note: 'mpl_::_1'
29 | typedef arg<1> _1;
| ^~
....
/gpfs/softs/spack/opt/spack/linux-centos7-haswell/gcc-4.8.5/gcc-9.2.0-k4debouieljbsurbrr2w755davwl6xsu/include/c++/9.2.0/functional:211:34: note: 'std::placeholders::_1'
211 | extern const _Placeholder<1> _1;/
I configure CGAL via the following command:
/cmake -DCMAKE_INSTALL_PREFIX=${locinst}/cgal -DCMAKE_BUILD_TYPE=Release -DGMP_LIBRARIES=//${locinst}///gmp-6.1.2/lib/libgmp.so -DMPFR_LIBRARIES=//${locinst}///mpfr-3.1.6/lib/libmpfr.so -DGMP_INCLUDE_DIR=//${locinst}///gmp-6.1.2/include -DMPFR_INCLUDE_DIR=//${locinst}///mpfr-3.1.6-dw2bdrou2piprxsnfj3qsbroml3ych6v/include -DCGAL_HEADER_ONLY=OFF $srclib/cgal/
Boost 1.75 is configured with mpicc.
Finally, the libmesh installation is based on petsc 3.13.1 with mpicc/mpicxx.
Is there any workaround for this? Should I switch to gnu++14 dialect in my software or reinstall gcc with gnu++14 dialect support?
Thanks
Filippo
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Filippo, 01/14/2021
- Re: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Sebastien Loriot (GeometryFactory), 01/15/2021
- Re: [cgal-discuss] placeholder: CGAL 5.2 and Boost 1.75 with gcc, Laurent Rineau (CGAL/GeometryFactory), 01/15/2021
Archive powered by MHonArc 2.6.19+.