Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors

Subject: CGAL users discussion list

List archive

[cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors


Chronological Thread 
  • From: Arnaldo Luis Lixandrão Filho <>
  • To:
  • Subject: [cgal-discuss] Strange error The exemples build correctly but.... when are included in a source got errors
  • Date: Mon, 10 Aug 2009 11:40:13 -0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=bH/7s4Bm1XbcMYHX1F5tMPE10SrRYCKsurMwgViAyzbBR9ebJKuA6bLGBlLw+OP4lz 2uJP3WqSSF1wm9SDbZwKwNzfokH0zHVxNImMCSJ6J9F0XWJmh45mVC8hvYag5zj3XI+o OfE0HfXrYo4sZvE8Qw643VuDW+KkFjAk7b0r4=

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?

Best,
--
Arnaldo Luis Lixandrão Filho
----------------------------------------------------------------------------------------------------
Centro de Tecnologia da Informação Renato Archer - CTI
Divisão de Tecnologias Tridimensionais - DT3D
Rod. SP 65 km 143,6 – Campinas/SP
CEP: 13069-901 - Amarais
Fone: (19) 3746-6231 / Fax: (19) 3746-6204
----------------------------------------------------------------------------------------------------
NextFab Organization
----------------------------------------------------------------------------------------------------
skype/voipraider: arnaldo.fisica
mobile: +55 - 19 - 9695-9076
----------------------------------------------------------------------------------------------------
Sent from Campinas, SP, Brazil


Archive powered by MHonArc 2.6.16.

Top of Page