Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] impossible to compiling simple example simple_triangulation_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] impossible to compiling simple example simple_triangulation_3


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] impossible to compiling simple example simple_triangulation_3
  • Date: Wed, 14 Dec 2011 11:08:52 +0100
  • Organization: GeometryFactory

Le mardi 13 décembre 2011 07:58:22 pipalapop a écrit :
> Hello,
>
> I try to generate the basical example simple_triangulation_3 with the last
> CGAl revision (3.9) without any modifications.
>
> But I have the following errors:
>
>
>
> 1>------ Début de la génération : Projet : simple_triangulation_3,
> Configuration : Debug Win32 ------
> 1>Compilation en cours...
> 1>simple_triangulation_3.cpp
> 1>C:\Users\Yohan\Desktop\CGAL-3.9_32bits\include\CGAL/Triangulation_3.h(3747
> )
> : error C2244: 'CGAL::Triangulation_3<GT,Tds>::make_hole_3D' : impossible
> : de
> faire correspondre la définition de fonction avec une déclaration existante
> 1>
> C:\Users\Yohan\Desktop\CGAL-3.9_32bits\include\CGAL/Triangulation_3.h(1096)
> : voir la déclaration de 'CGAL::Triangulation_3<GT,Tds>::make_hole_3D' 1>
> définition
> 1> 'void
> CGAL::Triangulation_3<GT,Tds>::make_hole_3D(Triangulation_3<GT,Tds>::Tds::Ve
> rtex_handle,std::map<CGAL::Triple&lt;Triangulation_3&lt;GT,Tds>::Tds::Vertex
> _handle,Triangulation_3<GT,Tds>::Tds::Vertex_handle,Triangulation_3<GT,Tds>:
> :Tds::Vertex_handle>,Triangulation_3<GT,Tds>::Tds::Facet>
> &,std::vector<Triangulation_3&lt;GT,Tds>::Tds::*Vertex_handle*> &)' 1>
> déclarations existantes
> 1> 'void
> CGAL::Triangulation_3<GT,Tds>::make_hole_3D(Triangulation_3<GT,Tds>::Tds::Ve
> rtex_handle,std::map<CGAL::Triple&lt;Triangulation_3&lt;GT,Tds>::Tds::Vertex
> _handle,Triangulation_3<GT,Tds>::Tds::Vertex_handle,Triangulation_3<GT,Tds>:
> :Tds::Vertex_handle>,Triangulation_3<GT,Tds>::Tds::Facet>
> &,std::vector<Triangulation_3&lt;GT,Tds>::Tds::*Cell_handle*> &)'
> 1>C:\Users\Yohan\Desktop\CGAL-3.9_32bits\include\CGAL/Triangulation_3.h(4991
> )

Funny error, actually! It seems the compiler is confused and mixes up
Cell_handle and Vertex_handle, whereas the code is correct in CGAL at lines
the error points to.

> Each time there is a difference beetween the definition and the declaration:
> Vertex_handle has been replaced by Cell_handle.
>
> Have you an idea of the origin of this error.
>
> I use Win7 64bit but compile the 32 bit version , visual studio 2005 and
> boost 1.46.1.

Unfortunately, "The Microsoft Windows Visual C++ compiler 2005 (VC8) is no
longer supported by the CGAL project since CGAL-3.7." (says
http://www.cgal.org/releases.html ) and it seems that compiler can no longer
compile correctly the CGAL code.

You have not other options than use a more recent MSVC compiler, or try with
an older CGAL release.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.16.

Top of Page