Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] a compile errors in MFC

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] a compile errors in MFC


Chronological Thread 
  • 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/



Archive powered by MHonArc 2.6.16.

Top of Page