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:05:03 -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=YdnaVcYlF19Dq+QQrly7di5xH0rsSQSVgDQDXcBh0YY65H5aI3kSiCUnoFhio1nUd5HXP/26VnbLJ11ZWda8QX9dcX0eW4CwTAjDFwjbi370w7lsORLS4tVAD/cczzMawpu8VQcixtoIvccnXD4Cj1doRDxNL3NWkCT/4torn2w=
Ubuntu has a distribution of CGAL that you can install using the
Synaptic Manager. I've been trying to use this. However, it's an old
version so I downloaded the new one and it's compiling now.
On Thu, 2007-11-22 at 13:00 -0800, Mahmood NT wrote:
>
> You print the version of gcc. Did you install CGAL?
>
> I test CGAL with ubuntu and it did not install on it even with the
> presence of GCC. the error was "setup did not find any compiler on
> system". I think there it is a bug with setup finding the compiler but
> I did not have enough time to create a bug report.
>
>
> I am also wondering why CGAL can not be install in ubuntu.
>
>
>
>
>
>
> ----- Original Message ----
> From: Alejandro M. Aragón
> <>
> To:
>
> Sent: Thursday, November 22, 2007 11:58:31 PM
> Subject: [cgal-discuss] Is this a bug in the library?
>
> 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
> /usr/include/CGAL/Straight_2.h:37: error: expected `}' before ‘(’
> token
> /usr/include/CGAL/Straight_2.h:37: error: expected unqualified-id
> before
> ‘-’ token
> /usr/include/CGAL/Straight_2.h:37: error: expected `)' before ‘-’
> token
> /usr/include/CGAL/Straight_2.h:40: error: expected unqualified-id
> before
> ‘protected’
> /usr/include/CGAL/Straight_2.h:45: error: expected unqualified-id
> before
> ‘public’
> /usr/include/CGAL/Straight_2.h:50: error: expected class-name before
> ‘{’
> token
> /usr/include/CGAL/Straight_2.h:66: error: ‘states’ does not name a
> type
> /usr/include/CGAL/Straight_2.h:79: error: ‘Straight_2_base_’ has not
> been declared
> /usr/include/CGAL/Straight_2.h: In function ‘int
> CGAL::Straight_2_base_()’:
> /usr/include/CGAL/Straight_2.h:82: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:82: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h: At global scope:
> /usr/include/CGAL/Straight_2.h:86: error: ‘Straight_2_base_’ is not a
> class or namespace
> /usr/include/CGAL/Straight_2.h:87: error: expected constructor,
> destructor, or type conversion before ‘Straight_2_’
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_()’:
> /usr/include/CGAL/Straight_2.h:108: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:108: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_(const typename K::Line_2&)’:
> /usr/include/CGAL/Straight_2.h:117: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:118: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:120: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:120: error: ‘BOTH_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_(const typename K::Point_2&)’:
> /usr/include/CGAL/Straight_2.h:130: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:131: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:132: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:132: error: ‘NO_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_(const typename K::Ray_2&)’:
> /usr/include/CGAL/Straight_2.h:143: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:144: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:146: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:146: error: ‘MAX_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_(const typename K::Ray_2&, bool)’:
> /usr/include/CGAL/Straight_2.h:159: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:160: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:164: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:164: error: ‘MAX_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:169: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:169: error: ‘MIN_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In constructor
> ‘CGAL::Straight_2_<K>::Straight_2_(const typename K::Segment_2&)’:
> /usr/include/CGAL/Straight_2.h:180: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:181: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:183: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:183: error: ‘NO_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘void
> CGAL::Straight_2_<K>::current(typename K::Line_2&) const’:
> /usr/include/CGAL/Straight_2.h:194: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:194: error: ‘BOTH_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘void
> CGAL::Straight_2_<K>::current(typename K::Ray_2&) const’:
> /usr/include/CGAL/Straight_2.h:204: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:204: error: ‘MIN_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:204: error: ‘MAX_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘void
> CGAL::Straight_2_<K>::current(typename K::Segment_2&) const’:
> /usr/include/CGAL/Straight_2.h:219: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:219: error: ‘NO_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘void
> CGAL::Straight_2_<K>::current(typename K::Point_2&) const’:
> /usr/include/CGAL/Straight_2.h:229: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:229: error: ‘NO_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘bool
> CGAL::Straight_2_<K>::operator==(const CGAL::Straight_2_<K>&) const’:
> /usr/include/CGAL/Straight_2.h:241: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:242: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:245: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘void
> CGAL::Straight_2_<K>::cut_right_off(const typename K::Line_2&)’:
> /usr/include/CGAL/Straight_2.h:278: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:278: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:282: error: ‘Line_2_Line_2_pair’ was
> not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:282: error: expected primary-expression
> before ‘>’ token
> /usr/include/CGAL/Straight_2.h:283: error: ‘pair’ was not declared in
> this scope
> /usr/include/CGAL/Straight_2.h:284: error: ‘Line_2_Line_2_pair’ cannot
> appear in a constant-expression
> /usr/include/CGAL/Straight_2.h:284: error: expected primary-expression
> before ‘>’ token
> /usr/include/CGAL/Straight_2.h:284: error: ‘::NO_INTERSECTION’ has not
> been declared
> /usr/include/CGAL/Straight_2.h:286: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:286: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:288: error: ‘Line_2_Line_2_pair’ cannot
> appear in a constant-expression
> /usr/include/CGAL/Straight_2.h:288: error: expected primary-expression
> before ‘>’ token
> /usr/include/CGAL/Straight_2.h:288: error: ‘::LINE’ has not been
> declared
> /usr/include/CGAL/Straight_2.h:290: error: ‘Line_2_Line_2_pair’ cannot
> appear in a constant-expression
> /usr/include/CGAL/Straight_2.h:290: error: expected primary-expression
> before ‘>’ token
> /usr/include/CGAL/Straight_2.h:290: error: ‘::POINT’ has not been
> declared
> /usr/include/CGAL/Straight_2.h:295: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:295: error: ‘MIN_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:303: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:303: error: ‘MAX_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:305: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:314: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:314: error: ‘MAX_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:322: error: ‘bound_state_’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:322: error: ‘MIN_UNBOUNDED’ was not
> declared in this scope
> /usr/include/CGAL/Straight_2.h:324: error: ‘LINE_EMPTY’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h: In member function ‘int
> CGAL::Straight_2_<K>::collinear_order(const typename K::Point_2&,
> const
> typename K::Point_2&) const’:
> /usr/include/CGAL/Straight_2.h:344: error: ‘main_dir_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h:350: error: ‘dir_sign_’ was not
> declared
> in this scope
> /usr/include/CGAL/Straight_2.h: At global scope:
> /usr/include/CGAL/Straight_2.h:355: error: expected declaration before
> ‘}’ token
> make[2]: *** [element.o] Error 1
> make[2]: Leaving directory `/home/aaragon/workspace/fea/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/aaragon/workspace/fea'
> make: *** [all] Error 2
>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>
>
>
>
> ______________________________________________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile.
> Try it now.
- [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.