Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] Problem using CGAL with OpenCV under Windows and MFC
  • Date: Fri, 21 Nov 2008 16:29:38 +0100

On Friday 21 November 2008 16:17:34

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'
> ...many other error of the same type....
> include\cgal\io\io_tags.h(28) : error C2143: syntax error : missing ';'
> before '{'
> ...many other error of the same type....
> \include\cgal\io\io.h(137) : error C4430: missing type specifier - int
> assumed. Note: C++ does not support default-int
> ...

Most probably there as macros around.
Try to call:
#undef EXIT
#undef CONTINUE
before including CGAL headers.


Note that the filenames of headers are case sensitive, even if your compiler
does not care. That is <CGAL/assertions.h>, <CGAL/IO/io_tags.h>, and
<CGAL/IO/io.h>.

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page