Quantcast

Compilation error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compilation error

Chaman Singh Verma
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<

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compilation error

Sebastien Loriot (GeometryFactory)
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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compilation error

Chaman Singh Verma
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) <[hidden email]>
To: [hidden email]
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





Loading...