Compilation Problems

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation Problems

MirJafar
Hello,

I am using CGAL modules in my software and I am getting some error messages which
are difficult to understand. Can someone help ?

/home/csv610/Software/MathLib/GMP/include/gmpxx.h:3094:52: error: macro "abs" passed 2 arguments, but takes just 1
In file included from /home/csv610/Software/CompGeom/CGAL/include/CGAL/number_type_basic.h:70,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/basic.h:35,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/Cartesian/Cartesian_base.h:29,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/Cartesian.h:27,
                 from MeshSubDivision.h:7,
                 from TJunction.cc:21:
/home/csv610/Software/CompGeom/CGAL/include/CGAL/number_utils.h:213: error: expected unqualified-id before 'const'
/home/csv610/Software/CompGeom/CGAL/include/CGAL/number_utils.h:213: error: expected `)' before 'const'
/home/csv610/Software/CompGeom/CGAL/include/CGAL/number_utils.h:213: error: expected `)' before 'const'
In file included from /home/csv610/Software/CompGeom/CGAL/include/CGAL/number_type_basic.h:71,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/basic.h:35,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/Cartesian/Cartesian_base.h:29,
                 from /home/csv610/Software/CompGeom/CGAL/include/CGAL/Cartesian.h:27,
                 from MeshSubDivision.h:7,
                 from TJunction.cc:21:
/home/csv610/Software/CompGeom/CGAL/include/CGAL/number_utils_classes.h: In member function 'NT CGAL::Abs<NT>::operator()(const NT&) const':
/home/csv610/Software/CompGeom/CGAL/include/CGAL/number_utils_classes.h:101: error: expected unqualified-id before '(' token

Thanks.
csv
Poona, India
Reply | Threaded
Open this post in threaded view
|

Re: Compilation Problems

Sylvain Pion
Administrator
Chaman Singh Verma a écrit :
> Hello,
>
> I am using CGAL modules in my software and I am getting some error
> messages which
> are difficult to understand. Can someone help ?
>
> /home/csv610/Software/MathLib/GMP/include/gmpxx.h:3094:52: error: macro
> "abs" passed 2 arguments, but takes just 1

Some of your files seems to define a macro abs() taking 2 arguments.
You should remove this macro as it clashes with CGAL (and gmpxx).

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss