Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] Is this a bug in the library?
- Date: Thu, 22 Nov 2007 22:16:09 +0100
Alejandro M. Aragón a écrit :
Hello everyone,
I want to use the CGAL library but there is something really weird. I
just #include the header file Cartesian.h (nothing else), and then my
compiler becomes crazy! I'm using Ubuntu Linux with g++
~$ g++ --version
g++ (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Is this a bug in the library? How come I cannot even include a header
file? I took a look at line 37 of /usr/include/CGAL/Straight_2.h and
there is no '(' token. Does anyone know why is this and if it has a
fix???
Thank you all,
Alejandro M. Aragón
The output of the compiler is
make all make all-recursive
make[1]: Entering directory `/home/aaragon/workspace/fea'
Making all in src
make[2]: Entering directory `/home/aaragon/workspace/fea/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/home/aaragon/lib/include -g
-O2 -MT type.o -MD -MP -MF ".deps/type.Tpo" -c -o type.o type.cxx; \
then mv -f ".deps/type.Tpo" ".deps/type.Po"; else rm -f
".deps/type.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/home/aaragon/lib/include -g
-O2 -MT element.o -MD -MP -MF ".deps/element.Tpo" -c -o element.o
element.cxx; \
then mv -f ".deps/element.Tpo" ".deps/element.Po"; else rm -f
".deps/element.Tpo"; exit 1; fi
/usr/include/CGAL/Straight_2.h:37: error: expected identifier before ‘(’
token
Sounds like one of the identifiers on that line is defined as a macro by another library from which you were including some header file before
CGAL's.
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
- [cgal-discuss] Is this a bug in the library?, Alejandro M., 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Sylvain Pion, 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Alejandro M., 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Sylvain Pion, 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Alejandro M., 11/22/2007
- Re: [OT] [cgal-discuss] Is this a bug in the library?, Ashwin Nanjappa, 11/23/2007
- Re: [cgal-discuss] Is this a bug in the library?, Sylvain Pion, 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Alejandro M., 11/22/2007
- <Possible follow-up(s)>
- Re: [cgal-discuss] Is this a bug in the library?, Mahmood NT, 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Alejandro M., 11/22/2007
- Re: [cgal-discuss] Is this a bug in the library?, Sylvain Pion, 11/22/2007
Archive powered by MHonArc 2.6.16.