Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] a compile errors in MFC
- Date: Thu, 24 May 2007 08:10:16 +0200
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>.
> Thanks,
> thetis
>
> 1>ConvexHull.cpp
> 1>c:\program
> files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h(53) : error
> C2226: 语法错误: 意外的"CGAL::Interval_nt<Protected>"类型
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h
> (53) : error C2065: "Protected": 未声明的标识符
> 1>c:\program
> files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h(53) : error
> C2226: 语法错误: 意外的"CGAL::Interval_nt"类型
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h
> (53) : error C2059: 语法错误: ")"
> 1>c:\program
> files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h(57) : error
> C2226: 语法错误: 意外的"CGAL::Interval_nt"类型
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt_fwd.h
> (57) : error C2059: 语法错误: ")"
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt.h(624)
> : error C2226: 语法错误: 意外的"CGAL::Interval_nt<Protected>"类型
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt.h (624)
> : error C2226: 语法错误: 意外的"CGAL::Interval_nt"类型
> 1>c:\program files\libraries\cgal-3.2.1\include\cgal\interval_nt.h(624)
> : error C2059: 语法错误: ")"
>
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
- a compile errors in MFC, thetis guan, 05/24/2007
- Re: [cgal-discuss] a compile errors in MFC, Sylvain Pion, 05/24/2007
- Re: [cgal-discuss] a compile errors in MFC, Andreas Fabri, 05/24/2007
- AW: [cgal-discuss] a compile errors in MFC, Stefan Uhrig, 05/24/2007
- Re: [cgal-discuss] a compile errors in MFC, Andreas Fabri, 05/24/2007
- Re: [cgal-discuss] a compile errors in MFC, Sylvain Pion, 05/24/2007
Archive powered by MHonArc 2.6.16.