Subject: CGAL users discussion list
List archive
- From: "Xiaofan Li" <>
- To: <>
- Subject: [cgal-discuss] CGAL::Surface_mesh_simplification compiling errors in G++ 4.3
- Date: Mon, 28 Jul 2008 12:16:08 +0100
Hi all, Just found out that due to changes in GCC 4.3, the
Surface_mesh_simplification module complains when compiling. It is basically
the common problem of the macro definition of CHAR_BIT that is also seen in the
boost library, plus one more warning message that the module is including a
header file which will be obsolete without notice in future gcc versions. Check the detail report here: make[5]: Entering directory
`/farm/home/li14/devel/BioSimz/src/Validation' /bin/sh ../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H - g++ -DHAVE_CONFIG_H - In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/ext/hash_set:64, from
/usr/include/boost/graph/adjacency_list.hpp:22, from
/usr/include/CGAL/Surface_mesh_simplification/Detail/Edge_collapse.h:28, from
/usr/include/CGAL/Surface_mesh_simplification/edge_collapse.h:24, from
./../../include/BioSimz/MolSkinMesh.h:30, from MolSkinMesh.cpp:2: /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header which may be removed without further notice at a future date. Please use
a non-deprecated interface with equivalent functionality instead. For a listing
of replacement headers and interfaces, consult the file backward_warning.h. To
disable this warning use -Wno-deprecated. In file included from
/usr/include/CGAL/Modifiable_priority_queue.h:21, from
/usr/include/CGAL/Surface_mesh_simplification/Detail/Common.h:35, from
/usr/include/CGAL/Surface_mesh_simplification/halfedge_collapse_Polyhedron_3.h:21, from
/usr/include/CGAL/Surface_mesh_simplification/HalfedgeGraph_Polyhedron_3.h:25, from
./../../include/BioSimz/MolSkinMesh.h:29, from MolSkinMesh.cpp:2: /usr/include/CGAL/boost_relaxed_heap.hpp: In member function
'size_t boost::boost_relaxed_heap<IndexedType, Compare,
ID>::log_base_2(size_t)': /usr/include/CGAL/boost_relaxed_heap.hpp:115: error:
'CHAR_BIT' was not declared in this scope make[5]: *** [MolSkinMesh.lo] Error 1 The first warning msg should be a boost one as it is from
adjacency_list.hpp:22, while the second compilation error arises from
CGAL/boost_relaxed_heap.hpp which indicated a CGAL one but with links to boost,
too. However the code compiles & runs well in gcc 4.1.2 with boost 1.34. Has anybody found a workaround for this problem? Regards, Xiaofan |
- [cgal-discuss] CGAL::Surface_mesh_simplification compiling errors in G++ 4.3, Xiaofan Li, 07/28/2008
- Re: [cgal-discuss] CGAL::Surface_mesh_simplification compiling errors, Sylvain Pion, 07/28/2008
Archive powered by MHonArc 2.6.16.