Subject: CGAL users discussion list
List archive
- From: Adrien-externe COSSA <>
- To:
- Subject: Compilation problem while mixing CGAL with another library
- Date: Wed, 4 Jul 2007 12:15:09 +0200
Hi,
I have some problems with CGAL... I'd like to add the support of X3D input
using xerces-c parser.
My importer includes a file called builder.h in wich some other inclusions
are made.
The project from wich comes this builder.h is here :
http://www-sop.inria.fr/geometrica/team/Pierre.Alliez/demos/curvature/
It uses stdafx.h and other windows specific libraries.The compiler is
MSVC++ 7.
I don't know exactly what causes these errors but it seems to me that it's
platform related.
The output from the compiler is in french and I have translated it but
there's maybe some mistakes.
I have also filtered the "syntax error : no ... before ..." errors wich often
follows each "identifier not declared" :
C:\CGAL\include\CGAL\FPU.h(174) : error C2065: '_asm' : identifier not
declared
C:\CGAL\include\CGAL\FPU.h(176) : error C2065: 'fld' : identifier not
declared
C:\CGAL\include\CGAL\FPU.h(177) : error C2065: 'fsqrt' : identifier not
declared
C:\CGAL\include\CGAL\FPU.h(178) : error C2065: 'fstp' : identifier not
declared
C:\CGAL\include\CGAL\long_long.h(36) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(44) : error C2766: explicit
specialisation ; 'CGAL::Number_type_traits<long>' has been already defined
C:\CGAL\include\CGAL\long_long.h(38) : error C2371:
'CGAL::Number_type_traits<long>::Has_division' : redefinition ; different
base types
C:\CGAL\include\CGAL\int.h(80) : see the declaration of
'CGAL::Number_type_traits<long>::Has_division'
C:\CGAL\include\CGAL\long_long.h(47) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(48) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(48) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(49) : error C2084: function 'long
CGAL::div(long,long)' has already a body
C:\CGAL\include\CGAL\int.h(90) : see previous declaration of 'div'
C:\CGAL\include\CGAL\long_long.h(53) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(54) : error C2084: function 'double
CGAL::to_double(long)' has already a body
C:\CGAL\include\CGAL\int.h(95) : see previous declaration of
'to_double'
C:\CGAL\include\CGAL\long_long.h(58) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(59) : error C2084: function 'bool
CGAL::is_finite(long)' has already a body
C:\CGAL\include\CGAL\int.h(100) : see previous definition of
'is_finite'
C:\CGAL\include\CGAL\long_long.h(63) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(64) : error C2084: function 'bool
CGAL::is_valid(long)' has already a body
C:\CGAL\include\CGAL\int.h(105) : see previous declaration of
'is_valid'
C:\CGAL\include\CGAL\long_long.h(68) : error C2632: 'long' can not be
followed by 'long'
C:\CGAL\include\CGAL\long_long.h(69) : error C2084: function
'std::pair<_Ty1,_Ty2> CGAL::to_interval(const long &)' has already a body
with
[
_Ty1=double,
_Ty2=double
]
C:\CGAL\include\CGAL\Interval_nt.h(731) : see previous declaration
of 'to_interval'
Now if I had this just before the include of builder.h :
#define _asm __asm;
The first four errors diseapear but the others are still here. Anybody
knows what I have to do to fix it ?
Thanks a lot.
--
Adrien
- Compilation problem while mixing CGAL with another library, Adrien-externe COSSA, 07/04/2007
Archive powered by MHonArc 2.6.16.