Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors
Chronological Thread
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors
- Date: Mon, 17 Aug 2009 12:03:59 +0200
- Organization: GeometryFactory
On Monday 10 August 2009 16:40:13 Arnaldo Luis Lixandrão Filho wrote:
> Hi all,
>
> I'm a new user of CGAL and i'm trying make CGAL part of my software. I'm
> using Visual Studio 2008 and CGAL 3.3.1. I build CGAL and test the
> exemples. All is working fine for the examples. But when i try to build the
> software with some includes of CGAL, for example the Minkowski Sum
>
> //! \file examples/Minkowski_sum_2/ex_approx_offset.cpp
> // Computing the approximated offset of a polygon.
>
> #include "ms_rational_nt.h"
> #include <CGAL/Lazy_exact_nt.h>
> #include <CGAL/Cartesian.h>
> #include <CGAL/approximated_offset_2.h>
> #include <CGAL/offset_polygon_2.h>
> #include <CGAL/Timer.h>
> #include <iostream>
>
> typedef CGAL::Lazy_exact_nt<Number_type> Lazy_exact_nt;
>
> // instead of
> //typedef CGAL::Cartesian<Lazy_exact_nt> Kernel;
> struct Kernel : public CGAL::Cartesian<Lazy_exact_nt> {};
> typedef CGAL::Polygon_2<Kernel> Polygon_2;
>
> typedef CGAL::Gps_circle_segment_traits_2<Kernel> Gps_traits_2;
> typedef Gps_traits_2::Polygon_2 Offset_polygon_2;
> typedef Gps_traits_2::Polygon_with_holes_2
> Offset_polygon_with_holes_2;
>
> Some strange erros appears at build log:
>
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/float.h(133) : warning C4244: 'return'
> : conversion from 'double' to 'float', possible loss of data
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(87) :
> error C2143: syntax error : missing '}' before 'constant'
> 1>
> C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(605) :
> see reference to class template instantiation
> 'CGAL::Sweep_line_event<SweepLineTraits_2,Subcurve>' being compiled
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(87) :
> error C2059: syntax error : 'constant'
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(101) :
> error C2143: syntax error : missing ';' before '}'
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(101) :
> error C2238: unexpected token(s) preceding ';'
> 1>C:\LIBSVS\CGAL-3.3.1\include\CGAL/Sweep_line_2/Sweep_line_event.h(101) :
> error C2146: syntax error : missing ';' before identifier 'Attribute'
>
> Someone can Help me please?
Do you have good reasons to use CGAL-3.3.1 instead of more recent releases?
I am sure there are people here that could help you, but are not really
wanting to have a deep look in old pieces of code.
--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/
- [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors, Arnaldo Luis Lixandrão Filho, 08/10/2009
- Re: [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors, Laurent Rineau (GeometryFactory), 08/17/2009
Archive powered by MHonArc 2.6.16.