Subject: CGAL users discussion list
List archive
- From: Giannis Papadopoulos <>
- To: Sylvain Pion <>
- Cc:
- Subject: Re: [cgal-discuss] issues of installing CGAL 3.3.1 on IBM AIX 5.3
- Date: Tue, 25 Aug 2009 02:57:18 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=U//TKkA/XNnnEPcdk/aC4/ayBV0ez5jv46GSdmpMkbsDzuYoySCLF2a+3J773Mxe3g 5l5POEJyBsqQH3HzZ5VzkavIJKuqPfOzc7E1EtpBgGcZzXmc5CXyAWQi8RQud3fGFu0o ZoTdOrL6XsKWy0fn8GXX0vO4oiN2XH86KM2JU=
Actually the problem is the following:
AIX defines hz as a macro in /usr/include/sys/m_param.h which is included by some C++ header and has some arbitrary value (on the systems I tested is 100).
In most cases, hz is prefixed by other letter(s) as a variable name so the substitution does harm anyone.
In Point_3 though it is a function, so it gives all the errors. All one has to do is to add the following
#if defined(__IBMCPP__) || defined(_AIX)
# ifdef hz
# undef hz
# endif
#endif
in CGAL/Point_3.h just before the namespace declaration. After that CGAL compiles fine.
On Sun, Jun 7, 2009 at 7:54 AM, Sylvain Pion <> wrote:
My suggestion would be that you change all occurences of the word "hz"
to e.g. "hz_" in your own copy of CGAL.
I don't see a reasonable solution to work around this within CGAL.
Shu Ye wrote:
Hi Sylvain,
Thank you for taking a look at it. Do you have any suggestions on how to fix it?
Thanks,
-Shu
--- On *Fri, 6/5/09, Sylvain Pion /<>/* wrote:
From: Sylvain Pion <>
Subject: Re: [cgal-discuss] issues of installing CGAL 3.3.1 on IBM
AIX 5.3
To:
Date: Friday, June 5, 2009, 8:26 PM
</mc/compose?to=> wrote:
> Hi,
> Has anyone successfully installed CGAL on IBM AIX systems?
> I am trying to install CGAL 3.3.1 libraries on IBM AIX 5.3
system recently. The OS is 'powerpc_AIX-3.0, Compiler is GNU 4.1.2.
The setup has been test OK. When I built CGAL libraries, I got lots
of compiler errors. I attached two log files if you want to take a
look at the errors. Thank you in advance.
/home/shuy/EMS/CGAL-3.3.1/ibmrs1/CGAL-3.3.1/include/CGAL/Point_3.h:145:
error: '100' cannot be used as a function
Smeels like some system header is defining a macro like "hz" to 100...
-- 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
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
--
Ioannis Papadopoulos, Ph.D. Student
Department of Computer Science and Engineering
Texas A&M University
- Re: [cgal-discuss] issues of installing CGAL 3.3.1 on IBM AIX 5.3, Giannis Papadopoulos, 08/25/2009
Archive powered by MHonArc 2.6.16.