Subject: CGAL users discussion list
List archive
- From: "Alejandro M." Aragón <>
- To:
- Subject: Re: [cgal-discuss] Is this a bug in the library?
- Date: Thu, 22 Nov 2007 15:24:42 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=uocIz9sitXAO0Pti05y7+JeOhg9vXkPfzA9QV3iMZb+tI+ZBEO6Gx6OFhiE5PZpU0kOM5y4rIsuExtc/p0BcUFOPxzLbMeRFXMJxKW1EFgILmpM5ZF823HCNs2GBpPyxpULiYDWZJUtVWwjAyH88ZOjTyGvg2R/RsKopzsjMD4A=
Wow, I would have never figured that out! I took the header to the
beginning of the file and the problem is gone. How do you know when this
kind of thing happens?
On Thu, 2007-11-22 at 22:16 +0100, Sylvain Pion wrote:
> 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.