Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: CGAL: DelaunayTriangulation compile error with gcc 4.1

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: CGAL: DelaunayTriangulation compile error with gcc 4.1


Chronological Thread 
  • From: Mariette Yvinec <>
  • To:
  • Subject: Re: [cgal-discuss] Re: CGAL: DelaunayTriangulation compile error with gcc 4.1
  • Date: Wed, 13 Dec 2006 14:28:06 +0100

go to
http://www.cgal.org/mailing_list.html
and unsubscribe  to the list ?



parastoo saadat wrote:
hi
 
5 month ago i joined cgalgroup ,
and from that time all mails between people sended for me!!!!!!!!!!!!!!!!!!!!!!!1
 
how can i prevent getting your mails?
 
thank
parastoo saadat

Mariette Yvinec wrote:
sorry for my reaction time.
I transfer you message to the cgal user list

Stefan Schiffer a écrit :

>Dear Mariette Yvinec,
>
> I am writing you because of a problem I have with the CGAL Delaunay
> Triangulation and your name appears as author in the respective header.
> Currently, I am a PhD student at the Knowledge-based Systems Group at
> RWTH Aachen University. We are using CGAL within our robot software and
> we employ Delaunay Triangulation for qualitative world modelling.
>
> Recently, I tried to compile the respective module with gcc 4.1 and I
> encountered a problem that I am not able to solve. I am now turning to
> you since I am not sure whether this may be a shortcoming in CGAL. If
> it is a (known?) CGAL-problem, you can perhaps help me out, if it is
> not you may nonetheless be able to help me.
>
> To make sure the problem is not inherent in my code (which I debugged
> for several days now) I started from scratch with the example-code
> provided with CGAL and I could reproduce the particular error.
>
> Here's the code:
>-------8<--------------------------------------------------------------
>#include
>#include
>#include
>
>struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
>
>typedef CGAL::Delaunay_triangulation_2 Triangulation;
>typedef Triangulation::Edge_iterator Edge_iterator;
>typedef Triangulation::Point Point;
>
>int main( )
>{
> Triangulation T;
>
> T.insert( Point( 1.0, 0.1 ));
> T.insert( Point( 2.0, 0.1 ));
> T.insert( Point( 1.0, 0.3 ));
> T.insert( Point( 5.0, 0.2 ));
>
> int ns = 0;
> int nr = 0;
> Edge_iterator eit =T.edges_begin();
> for ( ; eit !=T.edges_end(); ++eit) {
> CGAL::Object o = T.dual(eit);
> K::Segment_2 s;
> K::Ray_2 r;
> if (CGAL::assign(s,o)) {++ns;}
> if (CGAL::assign(r,o)) {++nr;}
> }
> std::cout << "The voronoi diagram as " << ns << "finite edges "
> << " and " << nr << " rays" << std::endl;
> return 0;
>}
>------->8--------------------------------------------------------------
>
> When I try to compile this with gcc 4.0, everything is fine, but when
> using gcc 4.1 instead, I get the following errors (shortened for
> readability):
> ...
> CGAL/Delaunay_triangulation_2.h:389: error: no matching function for
> call to 'circumcenter...
> CGAL/Delaunay_triangulation_2.h:521: error: no matching function for call
> to 'side_of_oriented_circle...
>
> I also tried a compile-flag I found within the code (because I figured
> it would have something to do with making the two function circumcenter
> and side_of_oriented_circle visible from the base class
> (Triangulation_2.h):
>
> #define CGAL_CFG_USING_BASE_MEMBER_BUG_2
>
> This leeds to the following additional error message (again shortened
> for readability):
> ...
> CGAL/Delaunay_triangulation_2.h:228: error: there are no arguments to
> 'ccw' that depend on a template parameter, so a declaration of 'ccw'
> must be available
> CGAL/Delaunay_triangulation_2.h:247: error: there are no arguments to
> 'cw' that depend on a template parameter, so a declaration of 'cw' must
> be available
> ...
>
> Do you have any idea what this is about?
> Could this perhaps have something to do with
> http://www.parashift.com/c++-faq-lite/templates.html#faq-35.18
>
> I don't mean to bother you but I'd highly appreciate any comment!
> Don't hesitate to ask for further information if you need them.
> Thanks a lot and sorry for the inconvenience.
>
>Yours sincerely,
> Stefan Schiffer
>
>



Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.




Archive powered by MHonArc 2.6.16.

Top of Page