Subject: CGAL users discussion list
List archive
- From: Chaman Singh Verma <>
- To: "" <>
- Subject: Re: [cgal-discuss] Compilation error
- Date: Fri, 20 Jan 2017 19:57:26 +0000 (UTC)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:nJhKQRyW7PJy+m7XCy+O+j09IxM/srCxBDY+r6Qd2u0TIJqq85mqBkHD//Il1AaPBtSHra4fwLOM4ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe7x/IRu5oQnMqMUbhZZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxH0lCgHKSM2+3zZhMNqkKJUvg+qqAZ5w47TZYGaLv5+f6PAdt8eW2ZNQ8NdWipcCY2+coQPFfIMM+hYoYnnuVUArhmxBQexCuzg1jBFnWX50bEh3Os6DQ3KwA4tEtQTu3rUttX1M6ISXPirwanI1zrDaulZ2THg44bVcxAhp/6MXbJtesXe10YvDQbFgU+NooHiIzyVzfoNvmmG4+Z8Tu+ui3QoqwF2ojio3Msjlo7JhocMx13C6C53zoE1JdiiR056Z96pCJpQtyeAN4t3WMwuWW9ouDw8x7YbupC7ZDAHxZAkyhLFdvCKfYyF7gj9WOqMLzp0nm9pdbKwihqq9UWtyffwWtS63VtOtCZJjMTAum4X2xDN5cWLVP1w9Vq71zmVzQDc8ORELFg0laXFL54hxaY9lpwWsUnHByP2hkD2gLOMeko/5+io7+Dnbav6ppOGMo97kAD+MqA0lsOkD+Q0LxICXmiB9uS8073j+lf1T6lNjv0ziqXZsZbaKtoHpqOhBwJY0Zwv5wuxAjqiytgUg2QLIVxfdB6aj4XkNEnCIPXiAve+h1Ssni1rx/fDPrD5HprNNWbDnbb8cbph8ENdyBA8zdBY55JTEL0OPPXzWkrpuNzCEhA5KxC0w/rgCNhlyoweVniAAquAPKzPsF+I/f4gI/SXZI8Oozv9MPgk5/v2jXAjg1MdfK+p3YEWaH+iBPhmLV+ZMjLRhMwcGzIKohYmV76tz0aTVCZaIXe0RaM1oD8hT5m3CJ/KAYGrjrvG1yiyGthaZ3tNF0uXQkvvIs+PVP4ILS6TOcR8iScsVL67SoZn2wvk/FvxxLNja+bV4SYFronL1d5v5uSVmwtkpgZ5F8CM72bYZGF9m2oODwQ32q9/6XJw0FKKmfxzmOIGTIR79vpJVQB8PpnZmb9UEdf3DynBd9KATh6dQ9OpAXkPQ8g0ypdaaF1jRYz6pgHK3y2tRbQSkurYV9QP7qvA0i2pdI5GwHHc2fx71lQ=
Hello,
I will try to extract a small portion of code for you to verify. CGAL templates
are very difficult to debug and I am having more love and some hate relationship with it.
csv
From: Sebastien Loriot (GeometryFactory) <>
To:
Sent: Friday, January 20, 2017 4:52 AM
Subject: Re: [cgal-discuss] Compilation error
Do you have some code to share so that we can try reproduce the issue?
Thanks,
Sebastien.
On 01/15/2017 06:12 AM, Chaman Singh Verma wrote:
> Hello,
>
> I checkout the fresh CGAL 4.9 and getting the following errors on Ubuntu :
>
>
>
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/internal/named_params_helper.h:40:20:
> error: expected nested-name-specifier before ‘property_map_value’
> typedef typename property_map_value<PolygonMesh,
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/internal/named_params_helper.h:40:20:
> error: expected ‘;’ at end of member declaration
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/internal/named_params_helper.h:40:38:
> error: expected unqualified-id before ‘<’ token
> typedef typename property_map_value<PolygonMesh,
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/internal/named_params_helper.h:44:40:
> error: ‘Point’ was not declared in this scope
> typedef typename CGAL::Kernel_traits<Point>::Kernel Kernel;
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/internal/named_params_helper.h:44:45:
> error: template argument 1 is invalid
> typedef typename CGAL::Kernel_traits<Point>::Kernel Kernel;
> ^
> In file included from ../include/MeshBoolean.hpp:11:0,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:353:99:
> error: template argument 1 is invalid
> typename CGAL::Kernel_traits< typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:353:100:
> error: expected identifier before ‘::’ token
> typename CGAL::Kernel_traits< typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:353:102:
> error: ‘::Kernel’ has not been declared
> typename CGAL::Kernel_traits< typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:354:1:
> error: expected initializer before ‘compute_vertex_normal’
> compute_vertex_normal(
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:374:100:
> error: template argument 1 is invalid
> typename CGAL::Kernel_traits < typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:374:101:
> error: expected identifier before ‘::’ token
> typename CGAL::Kernel_traits < typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:374:103:
> error: ‘::Kernel’ has not been declared
> typename CGAL::Kernel_traits < typename property_map_value<PolygonMesh,
> CGAL::vertex_point_t>::type>::Kernel::Vector_3
>
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Polygon_mesh_processing/compute_normal.h:375:1:
> error: expected initializer before ‘compute_face_normal’
> compute_face_normal(
> ^
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:42:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:
> In function ‘bool CGAL::write_off(const CGAL::Surface_mesh<Point_3>&,
> const string&)’:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:347:14:
> error: invalid use of ‘struct boost::property_map<typename
> CGAL::Surface_mesh<Point_3>::Vertex_index, typename
> CGAL::Surface_mesh<Point_3>::Point>’
> = mesh.template property_map<typename Mesh::Vertex_index,
> Point_3>("v:point").first;
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:
> In function ‘bool CGAL::read_mesh(CGAL::Surface_mesh<Point_3>&, const
> string&)’:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:396:64:
> error: no matching function for call to
> ‘transform(std::__cxx11::basic_string<char>::iterator,
> std::__cxx11::basic_string<char>::iterator,
> std::__cxx11::basic_string<char>::iterator, <unresolved overloaded
> function type>)’
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> In file included from /usr/include/c++/5/algorithm:62:0,
> from ../include/MeshEntity.hpp:15,
> from ../include/Mesh.hpp:3,
> from ../include/MeshBoolean.hpp:3,
> from MeshBooleanOp.cpp:2:
> /usr/include/c++/5/bits/stl_algo.h:4164:5: note: candidate:
> template<class _IIter, class _OIter, class _UnaryOperation> _OIter
> std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
> transform(_InputIterator __first, _InputIterator __last,
> ^
> /usr/include/c++/5/bits/stl_algo.h:4164:5: note: template argument
> deduction/substitution failed:
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:42:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:396:64:
> note: couldn't deduce template parameter ‘_UnaryOperation’
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> In file included from /usr/include/c++/5/algorithm:62:0,
> from ../include/MeshEntity.hpp:15,
> from ../include/Mesh.hpp:3,
> from ../include/MeshBoolean.hpp:3,
> from MeshBooleanOp.cpp:2:
> /usr/include/c++/5/bits/stl_algo.h:4201:5: note: candidate:
> template<class _IIter1, class _IIter2, class _OIter, class
> _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2,
> _OIter, _BinaryOperation)
> transform(_InputIterator1 __first1, _InputIterator1 __last1,
> ^
> /usr/include/c++/5/bits/stl_algo.h:4201:5: note: template argument
> deduction/substitution failed:
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:42:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:396:64:
> note: candidate expects 5 arguments, 4 provided
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:
> In function ‘bool CGAL::write_mesh(const CGAL::Surface_mesh<Point_3>&,
> const string&)’:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:428:64:
> error: no matching function for call to
> ‘transform(std::__cxx11::basic_string<char>::iterator,
> std::__cxx11::basic_string<char>::iterator,
> std::__cxx11::basic_string<char>::iterator, <unresolved overloaded
> function type>)’
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> In file included from /usr/include/c++/5/algorithm:62:0,
> from ../include/MeshEntity.hpp:15,
> from ../include/Mesh.hpp:3,
> from ../include/MeshBoolean.hpp:3,
> from MeshBooleanOp.cpp:2:
> /usr/include/c++/5/bits/stl_algo.h:4164:5: note: candidate:
> template<class _IIter, class _OIter, class _UnaryOperation> _OIter
> std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
> transform(_InputIterator __first, _InputIterator __last,
> ^
> /usr/include/c++/5/bits/stl_algo.h:4164:5: note: template argument
> deduction/substitution failed:
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:42:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:428:64:
> note: couldn't deduce template parameter ‘_UnaryOperation’
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> In file included from /usr/include/c++/5/algorithm:62:0,
> from ../include/MeshEntity.hpp:15,
> from ../include/Mesh.hpp:3,
> from ../include/MeshBoolean.hpp:3,
> from MeshBooleanOp.cpp:2:
> /usr/include/c++/5/bits/stl_algo.h:4201:5: note: candidate:
> template<class _IIter1, class _IIter2, class _OIter, class
> _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2,
> _OIter, _BinaryOperation)
> transform(_InputIterator1 __first1, _InputIterator1 __last1,
> ^
> /usr/include/c++/5/bits/stl_algo.h:4201:5: note: template argument
> deduction/substitution failed:
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:42:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/IO.h:428:64:
> note: candidate expects 5 arguments, 4 provided
> std::transform(ext.begin(), ext.end(), ext.begin(), tolower);
> ^
> In file included from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/boost/graph/graph_traits_Surface_mesh.h:31:0,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh/Surface_mesh.h:44,
> from
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/Surface_mesh.h:23,
> from ../include/MeshBoolean.hpp:13,
> from MeshBooleanOp.cpp:2:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/boost/graph/properties_Surface_mesh.h:
> In constructor
> ‘CGAL::SM_edge_weight_pmap<Point>::SM_edge_weight_pmap(const
> CGAL::Surface_mesh<Point_3>&)’:
> /home/csverma/Disk/Software/CompGeom/CGAL/V4.9/include/CGAL/boost/graph/properties_Surface_mesh.h:48:15:
> error: invalid use of ‘struct boost::property_map<typename
> CGAL::Surface_mesh<Point_3>::Vertex_index, typename
> CGAL::Surface_mesh<Point_3>::Point>’
> : pm_(sm. template property_map<
>
--
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] Compilation error, Chaman Singh Verma, 01/15/2017
- Re: [cgal-discuss] Compilation error, Sebastien Loriot (GeometryFactory), 01/20/2017
- Re: [cgal-discuss] Compilation error, Chaman Singh Verma, 01/20/2017
- Re: [cgal-discuss] Compilation error, Sebastien Loriot (GeometryFactory), 01/20/2017
Archive powered by MHonArc 2.6.18.