Subject: CGAL users discussion list
List archive
- From: Andoni Beristain <>
- To:
- Subject: Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and
- Date: Fri, 21 Nov 2008 15:57:40 +0000 (GMT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=TiK6XJl+d+Dvq/ihC2NG2/wlOaSZZ5sHaB1Eol5haptiq2IZTexv2vpRzGTClqEDfS2vwqdq6rfNbSyeuc/wvgs1SQd5TvDib3P3d3APHhtMca0gtHqCVZnDumMpdfcfocgTley2qAgfyllxili0Iik+o1NxciyNuIPeTTv/yZo=;
Thank you. I have reordered the include statatements so the CGAL ones come
first and the problem is fixed.
--- El vie, 21/11/08, Sylvain Pion
<>
escribió:
> De: Sylvain Pion
> <>
> Asunto: Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and
> Para:
>
> Fecha: viernes, 21 noviembre, 2008 4:27
>
> wrote:
> > Good afternoon,
> >
> > I am trying the CGAL libraries to compute the
> Medial-Axis of a contour. I get
> > that contour using OpenCV, and I have to use OpenCV.
> This is part of my tesis
> > research work so I am really interested in completing
> my tests as soon as
> > possible.
> >
> > Unfortunately, I think that there is some kind of
> incompatibility between
> > OpenCV and CGAL and I can not figure out how to solve
> it.
> >
> > All the errors are related to the Assertions.h file:
> >
> > Example:
> > \include\cgal\assertions.h(34) : error
> C2143: syntax error : missing '}' before
> > 'goto'
>
> This line is:
>
> enum Failure_behaviour { ABORT, EXIT, EXIT_WITH_SUCCESS,
> CONTINUE,
> THROW_EXCEPTION };
>
> What most probably happens is that OpenCV (or other
> software you use), defines
> one of these names as a macro, which clashes with
> CGAL's enum.
>
> One probable fix is to include CGAL's header first,
> before the other problematic
> headers that defines the macro in question.
> (and maybe suggest that OpenCV does not define macros with
> such general names:
> good practice for libraries is to have macros with prefixes
> to avoid clashes)
>
> -- Sylvain Pion
> INRIA Sophia-Antipolis
> Geometrica Project-Team
> CGAL, http://cgal.org/
- [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC, beristainandoni, 11/21/2008
- Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and, Sylvain Pion, 11/21/2008
- Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and, Andoni Beristain, 11/21/2008
- Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC, Laurent Rineau, 11/21/2008
- Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC, Andoni Beristain, 11/21/2008
- Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and, Sylvain Pion, 11/21/2008
Archive powered by MHonArc 2.6.16.