Subject: CGAL users discussion list
List archive
- From: "Wesley Smith" <>
- To:
- Subject: Re: [cgal-discuss] OpenCV and CGAL
- Date: Thu, 24 Apr 2008 10:40:41 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S5hW22U5SOesyiCt9bXAR/WV5HAOvzaOBQtDAsUPTiyJiIphcNr7YVugUN25mnSpJvpZLZ76CTBNQua5VBgKolN0FJ75Y9H7ZowMmezql7VjIZ6MMu9p/aLnFoHPzx2BIwdkehcwigV2cQXVCVzk4xa5oPdD7OixpdXEOviAwnM=
ahhh, then this isn't a CGAL problem like I thought, but a Windoze
problem. I basically had some static class functions called min and
max that were conflicting. They weren't CGAL functions but my own
classes. Sorry for the confusion, but I try to avoid windows as much
as possible and thus am not very familiar with all these details when
such problems arise.
best,
wes
On Thu, Apr 24, 2008 at 10:37 AM, Sylvain Pion
<>
wrote:
> Wesley Smith a écrit :
>
>
> > I actually had exactly the same problem yesterday with min and max
> > defines. This was with VS2008. I had to do the following:
> >
> >
> > #ifdef min
> > #define MIN_MACRO min
> > #define MAX_MACRO max
> > #undef min
> > #undef max
> > #else
> > #define MIN_MACRO
> > #define MAX_MACRO
> > #endif
> >
> > /*
> > my code
> > */
> >
> > #define min MIN_MACRO
> > #define max MAX_MACRO
> >
> >
> > I was kind of surprised that there were macros with names min and max
> > in CGAL since these are such common names, they're bound to conflict.
> >
>
> To make it clear: CGAL does not define min/max macros.
> It protects itself against those macros which are defined by some
> windows header file.
>
> --
> Sylvain Pion
> INRIA Sophia-Antipolis
> Geometrica Project-Team
> CGAL, http://cgal.org/
> --
>
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
- Re: Re: [cgal-discuss] OpenCV and CGAL, novacheva, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Andreas Fabri, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Andreas Fabri, 04/24/2008
- <Possible follow-up(s)>
- Re: Re: [cgal-discuss] OpenCV and CGAL, novacheva, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Andreas Fabri, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Wesley Smith, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Andreas Fabri, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Sylvain Pion, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Wesley Smith, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Wesley Smith, 04/24/2008
- Re: [cgal-discuss] OpenCV and CGAL, Andreas Fabri, 04/24/2008
Archive powered by MHonArc 2.6.16.