Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] windows visual C++ express edition 2005 compilation problem

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] windows visual C++ express edition 2005 compilation problem


Chronological Thread 
  • From: Johannes Otepka <>
  • To:
  • Subject: Re: [cgal-discuss] windows visual C++ express edition 2005 compilation problem
  • Date: Mon, 08 Oct 2007 13:58:26 +0200

Hi Matthieu,

its a problem of ordering the include files correctly. make sure that you include <CGAL/basic.h> at the very beginning....
cheers,
johannes

ps: i think i remember a situation where <CGAL/Interval_nt_fwd.h> was also required...

Matthieu Chavent wrote:
Hello everybody,

I have a problem when I want to compile a code which use CGAL on windows. On Linux, I have no problem but on windows with visual C++ express edition 2005 when I try to build my project I have these error messages..
I just copy few of them and it is just to show the global problem... The list is quite long... I follow the instructions on the supported platforms pages... So, I don't understand..

So, if somebody can help me...

Thank you in advance!!



3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(52) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt<Protected>'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(52) : error C2065: 'Protected' : undeclared identifier
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(52) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(52) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(55) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt_fwd.h(55) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(624) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt<Protected>'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(624) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(624) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(633) : error C2226: syntax error : unexpected type 'CGAL::Interval_nt'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(633) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(634) : error C2143: syntax error : missing ';' before '{'
3>C:\work\CGAL-3.2.1\include\CGAL/Interval_nt.h(634) : error C2447: '{' : missing function header (old-style formal list?)
3>C:\work\CGAL-3.2.1\include\CGAL/number_utils_classes.h(116) : warning C4002: too many actual parameters for macro 'min'
3>C:\work\CGAL-3.2.1\include\CGAL/number_utils_classes.h(126) : warning C4002: too many actual parameters for macro 'max'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(57) : warning C4003: not enough actual parameters for macro 'max'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(57) : error C2062: type 'int' unexpected
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(57) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(57) : error C2760: syntax error : expected '{' not ';'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(58) : warning C4003: not enough actual parameters for macro 'min'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(58) : error C2144: syntax error : 'double' should be preceded by '}'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(58) : error C2062: type 'int' unexpected
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(58) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(58) : error C2760: syntax error : expected '{' not ';'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2144: syntax error : 'CGAL::Bbox_2' should be preceded by '}'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2143: syntax error : missing ')' before ';'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2143: syntax error : missing ';' before ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2143: syntax error : missing ')' before ';'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(60) : error C2238: unexpected token(s) preceding ';'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : warning C4003: not enough actual parameters for macro 'min'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : warning C4091: 'inline ' : ignored on left of 'double' when no variable is declared
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : error C2143: syntax error : missing ';' before '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : error C2059: syntax error : '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(106) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(107) : error C2143: syntax error : missing ';' before '{'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(107) : error C2447: '{' : missing function header (old-style formal list?)
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : warning C4003: not enough actual parameters for macro 'max'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : warning C4091: 'inline ' : ignored on left of 'double' when no variable is declared
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : error C2143: syntax error : missing ';' before '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : error C2059: syntax error : '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(115) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(116) : error C2143: syntax error : missing ';' before '{'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(116) : error C2447: '{' : missing function header (old-style formal list?)
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(126) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(126) : error C2143: syntax error : missing ')' before '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(127) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(128) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(129) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_2.h(129) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(88) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(88) : error C2143: syntax error : missing ')' before '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(89) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(90) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(91) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(92) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(93) : error C2589: '(' : illegal token on right side of '::'
3>C:\work\CGAL-3.2.1\include\CGAL/Bbox_3.h(93) : error C2059: syntax error : ')'
3>C:\work\CGAL-3.2.1\include\CGAL/Segment_2.h(92) : warning C4003: not enough actual parameters for macro 'min'
3>C:\work\CGAL-3.2.1\include\CGAL/Segment_2.h(95) : warning C4003: not enough actual parameters for macro 'max'
3>C:\work\CGAL-3.2.1\include\CGAL/Segment_2.h(92) : error C2059: syntax error : ')'




Archive powered by MHonArc 2.6.16.

Top of Page