Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: How to correct these conflicts between CGAL with MSVC8

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: How to correct these conflicts between CGAL with MSVC8


Chronological Thread 
  • From: JohnHans <>
  • To:
  • Subject: [cgal-discuss] Re: How to correct these conflicts between CGAL with MSVC8
  • Date: Thu, 20 May 2010 20:19:48 -0700 (PDT)


Hi, Laurent Rineau, Andreas Fabri,

Thank you very much for your instructions.

After I cancel the line of MathFix.h: #define pow(x, y) wtf_pow(x, y) and
re-compile, there are no 'std::wtf_pow' errors like I described in the first
message.

Now I change to use CGAL 3.6, the latest release CGAL. When I try to build
the application routine based on CGAL3.6, it needs CGAL/compiler_config.h
and cl_1400.h, I copy CGAL/compiler_config.h and cl_1400.h from CGAL 3.3.1
to CGAL 3.6. Is it correct?

However, when I try to compile it, there are 174 errors about CGAL as
following:
CGAL-3.6\include\CGAL/Quotient.h(129) : error C2143: syntax error : missing
')' before '&&'
1> CGAL-3.6\include\CGAL/Quotient.h(190) : see reference to class
template instantiation 'CGAL::Quotient<NT_>' being compiled
1>CGAL-3.6\include\CGAL/Quotient.h(129) : error C2143: syntax error :
missing ';' before '&&'
1>CGAL-3.6\include\CGAL/Quotient.h(129) : error C2238: unexpected token(s)
preceding ';'
1>CGAL-3.6\include\CGAL/Quotient.h(129) : error C2988: unrecognizable
template declaration/definition
1>CGAL-3.6\include\CGAL/Quotient.h(129) : error C2059: syntax error : '&&'
1>CGAL-3.6\include\CGAL/Quotient.h(129) : error C2059: syntax error : ')'
1>CGAL-3.6\include\CGAL/Quotient.h(134) : error C2334: unexpected token(s)
preceding ':'; skipping apparent function body
1>CGAL-3.6\include\CGAL/Quotient.h(136) : error C2143: syntax error :
missing ')' before '&&'
1>CGAL-3.6\include\CGAL/Quotient.h(136) : error C2143: syntax error :
missing ';' before '&&'
1>CGAL-3.6\include\CGAL/Quotient.h(136) : error C2059: syntax error : ')'
1>CGAL-3.6\include\CGAL/Quotient.h(136) : error C2334: unexpected token(s)
preceding ':'; skipping apparent function body
……
1>CGAL-3.6\include\CGAL/Quotient.h(233) : error C2244:
'CGAL::Quotient<NT_>::operator +=' : unable to match function definition to
an existing declaration
1> definition
1> 'CGAL::Quotient<NT_> &CGAL::Quotient<NT_>::operator +=(const
CGAL::Quotient<NT_> &)'
1> existing declarations
1> 'CGAL::Quotient<NT_> &CGAL::Quotient<NT_>::operator +=(const
First_if_different<double,NT_>::Type &)'
1> 'CGAL::Quotient<NT_> &CGAL::Quotient<NT_>::operator +=(const
First_if_different<int,RT_>::Type &)'
1> 'CGAL::Quotient<NT_> &CGAL::Quotient<NT_>::operator +=(const NT_
&)'
1> 'CGAL::Quotient<NT_> &CGAL::Quotient<NT_>::operator +=(const
CGAL::Quotient<NT_> &)'
……
1> CGAL-3.6\include\CGAL/Handle_for_virtual.h(104) : error C2143: syntax
error : missing ')' before '&&'
1>CGAL-3.6\include\CGAL/Handle_for_virtual.h(175) : see reference to class
template instantiation 'CGAL::Handle_for_virtual<RefCounted>' being compiled
1>CGAL-3.6\include\CGAL/Handle_for_virtual.h(104) : error C2143: syntax
error : missing ';' before '&&'
1>CGAL-3.6\include\CGAL/Handle_for_virtual.h(104) : error C2059: syntax
error : ')'
1>CGAL-3.6\include\CGAL/Handle_for_virtual.h(105) : error C2334: unexpected
token(s) preceding '{'; skipping apparent function body
1>CGAL-3.6\include\CGAL/Object.h(47) : error C2143: syntax error : missing
')' before '&&'
1>CGAL-3.6\include\CGAL/Object.h(66) : see reference to class template
instantiation 'CGAL::Wrapper<T>' being compiled
1>CGAL-3.6\include\CGAL/Object.h(47) : error C2143: syntax error : missing
';' before '&&'
……
I am new to C++ and CGAL, could you please instruct me to solve these
problems?

Thank you very much!

Best wishes,

John Hans

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-correct-these-conflicts-between-CGAL-with-MSVC8-tp2223982p2225578.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page