Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Error in CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Error in CGAL


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Error in CGAL
  • Date: Mon, 26 Oct 2009 17:25:57 +0200
  • Organization: GeometryFactory

On Monday 26 October 2009 16:03:49 Sascha Räsch wrote:
> Hallo,
>
> I suppose I've found an error in CGAL. The header file
> "AABB_intersections/Bbox_3_bbox_3_do_intersect.h"
> contains a declaration of the function "do_intersect".
> The problem was, that after including the header file twice in my project
> I got a linker error, because "do_intersect" occurred twice as a symbol
> in my object files.
> That is caused by the fact, that "do_intersect" is defined as a symbol
> in the header file and hence
> the header cannot be included twice in the whole project.

You are right. As a temporary workaround, you can qualify the declaration of
that function with "inline".

--
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