Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Bug report for dealing with Point_set_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Bug report for dealing with Point_set_2


Chronological Thread 
  • From: Christoph Weber <>
  • To: cgal-liste <>
  • Subject: [cgal-discuss] Bug report for dealing with Point_set_2
  • Date: Tue, 10 Mar 2009 18:08:43 +0100

hi everybody,

here is the bug report for my porblem from last friday (6th march):

OS:
openSUSE 11.0 (X86-64)
VERSION = 11.0

CPU: model name : Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz

compiler: g++ 4.3.1

Linux version 2.6.25.20-0.1-default

CGAL was build without any extended features (except the reqiured boost
lib), no 3rth party software was used.



the following program produces the error message:

/pcdata/weber/CGAL/CGAL-3.3.1/include/CGAL/Point_set_2.h: In member
function ‘void CGAL::Point_set_2<Gt, Tds>::init_dfs()’:
/pcdata/weber/CGAL/CGAL-3.3.1/include/CGAL/Point_set_2.h:307: error:
‘INT_MAX’ was not declared in this scope

/*
bug report program
author: Christoph Weber, 10th March 2009

Thid program produces the following error message:
/pcdata/weber/CGAL/CGAL-3.3.1/include/CGAL/Point_set_2.h: In member
function ‘void CGAL::Point_set_2<Gt, Tds>::init_dfs()’:
/pcdata/weber/CGAL/CGAL-3.3.1/include/CGAL/Point_set_2.h:307: error:
‘INT_MAX’ was not declared in this scope


*/

#include <iostream>
#include <fstream>
#include <cassert>
// unconmmend this line to make the program work.
// #include <limits.h>

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Point_set_2.h>
#include <list>


int main()
{
return(0);
}



I solved the problem with zengming's tip. Before including the
CGAL-header, I included limits.h

regards,

christoph






  • [cgal-discuss] Bug report for dealing with Point_set_2, Christoph Weber, 03/10/2009

Archive powered by MHonArc 2.6.16.

Top of Page