Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compilation error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compilation error


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Compilation error
  • Date: Fri, 20 Jan 2017 11:52:30 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:qt/XkBSqNOLRqPTFQH+2bNLgk9psv+yvbD5Q0YIujvd0So/mwa67bR2N2/xhgRfzUJnB7Loc0qyN4vymBTdLuMjJ8ChbNscTB1ld0YRetjdjKfDGIHWzFOTtYS0+EZYKf35e1Fb/D3JoHt3jbUbZuHy44G1aMBz+MQ1oOra9QdaK3Izkn9y1rpbcagENiDumaq5pNz23qx/Qv48Ym9hMMKE0n1Hyr3FBYPhXyGUgAVWJnhHgroef8Zlm/jhKqtwo/NJHS7S7NexsVrhfFjUhLyYw4OXksBDCSU2E4X5KATZeqQZBHwWQtEKyZZz2qCav7uc=
  • Organization: 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<





Archive powered by MHonArc 2.6.18.

Top of Page