Subject: CGAL users discussion list
List archive
- From: "Stefan Uhrig" <>
- To: <>
- Subject: WG: [cgal-discuss] a compile errors in MFC
- Date: Thu, 24 May 2007 12:11:08 +0200
> -----Ursprüngliche Nachricht-----
> Von: Andreas Fabri
> [mailto:]
> Gesendet: Donnerstag, 24. Mai 2007 09:16
> An:
>
> Betreff: Re: [cgal-discuss] a compile errors in MFC
>
> Sylvain Pion wrote:
> > thetis guan a écrit :
> >> Hi everyone
> >> I've been using CGAL for a while and I'd like to use the code I made
> in
> >> a project in VS2005. I tried to create MFC soution with this code,
> but I
> >> still get some errors like the one attached. but as I am using
> windows I
> >> cannot possibly do that.But if I build a console solution it is OK;
> >> i found if i add this head file <windows.h> to projec, these errors
> will
> >> appear.
> >
> > It is a problem with the min() macro defined by <windows.h>.
>
> And the workaround is to wait a couple of days for the next
> release where this problem is fixed.
>
You can add NOMINMAX to your preprocessor definitions to disable the min and
max macros in <windows.h> (in project-properties --> C/C++ --> Preprocessor
--> Preprocessor Definitions). This will fix the problem.
Stefan
- WG: [cgal-discuss] a compile errors in MFC, Stefan Uhrig, 05/24/2007
Archive powered by MHonArc 2.6.16.