Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: New to CGAL

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: New to CGAL


Chronological Thread 
  • From: Ampelion <>
  • To:
  • Subject: [cgal-discuss] Re: New to CGAL
  • Date: Fri, 30 Mar 2012 12:12:00 -0700 (PDT)

Hi,

I'm learning c++ in order to use CGAL, and I'm having trouble compiling one
of the examples. The error messages are below. What am I doing wrong? It is
probably something silly.

The package is up-to-date as of December, and I've been using CGAL python
bindings for a couple years with no problems (except that one of the
functions I need was not ported).

Thanks,
Ben

*********@*****[1003]:
g++ ex_alpha_shapes_with_fast_location_3.cpp
ex_alpha_shapes_with_fast_location_3.cpp:13: error: ‘Fast_location’ is not a
member of ‘CGAL’
ex_alpha_shapes_with_fast_location_3.cpp:13: error: ‘Fast_location’ is not a
member of ‘CGAL’
ex_alpha_shapes_with_fast_location_3.cpp:13: error: wrong number of template
arguments (3, should be 2)
/usr/include/CGAL/Delaunay_triangulation_3.h:45: error: provided for
‘template<class Gt, class Tds> class CGAL::DT3’
ex_alpha_shapes_with_fast_location_3.cpp:13: error: invalid type in
declaration before ‘;’ token
/usr/include/CGAL/Alpha_shape_3.h: In instantiation of
‘CGAL::Alpha_shape_3<int>’:
ex_alpha_shapes_with_fast_location_3.cpp:16: instantiated from here
/usr/include/CGAL/Alpha_shape_3.h:52: error: base type ‘int’ fails to be a
struct or class type
/usr/include/CGAL/Alpha_shape_3.h:101: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:102: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:104: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:105: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:107: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:109: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:110: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:111: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:112: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:114: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:115: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:117: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:118: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:119: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:120: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:122: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:123: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:124: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:125: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:127: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:128: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:130: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:131: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:132: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:133: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:134: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:135: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:136: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:137: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:138: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:139: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:140: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:141: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:142: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:143: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:144: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:145: error: type ‘int’ is not a base type
for type ‘CGAL::Alpha_shape_3<int>’
/usr/include/CGAL/Alpha_shape_3.h:155: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:156: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:158: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:160: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:161: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:163: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:164: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:165: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:166: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:168: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:169: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:172: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:174: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:188: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:189: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:195: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:198: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:199: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:205: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:206: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:207: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:208: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:210: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:211: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:213: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:216: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:217: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:225: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:230: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:246: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:293: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:359: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:370: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:377: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:399: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:407: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:445: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:451: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:457: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:462: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:469: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:475: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:482: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:487: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:492: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:499: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:514: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:515: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:517: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:527: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:536: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1582: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1505: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1519: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1533: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:559: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:566: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:586: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:594: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:605: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:611: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:616: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1542: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:629: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:637: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:643: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1557: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:658: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1628: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:683: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1641: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1674: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:720: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:728: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:736: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:741: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:747: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:751: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1866: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:782: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:794: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:806: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:818: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:940: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:956: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:968: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:990: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1001: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1025: error: ‘int’ is not a class, struct,
or union type
/usr/include/CGAL/Alpha_shape_3.h:1064: error: ‘int’ is not a class, struct,
or union type
ex_alpha_shapes_with_fast_location_3.cpp: In function ‘int main()’:
ex_alpha_shapes_with_fast_location_3.cpp:29: error: request for member
‘insert’ in ‘dt’, which is of non-class type ‘Delaunay’
ex_alpha_shapes_with_fast_location_3.cpp:34: error: no matching function for
call to ‘CGAL::Alpha_shape_3<int>::Alpha_shape_3(Delaunay&)’
/usr/include/CGAL/Alpha_shape_3.h:759: note: candidates are:
CGAL::Alpha_shape_3<Dt>::Alpha_shape_3(const CGAL::Alpha_shape_3<Dt>&) [with
Dt = int]
ex_alpha_shapes_with_fast_location_3.cpp:39: error: ‘class Alpha_shape_3’
has no member named ‘find_alpha_solid’
ex_alpha_shapes_with_fast_location_3.cpp:40: error: ‘Alpha_iterator’ was not
declared in this scope
ex_alpha_shapes_with_fast_location_3.cpp:40: error: expected `;' before
‘opt’
ex_alpha_shapes_with_fast_location_3.cpp:42: error: ‘alpha_solid’ was not
declared in this scope
ex_alpha_shapes_with_fast_location_3.cpp:44: error: ‘opt’ was not declared
in this scope
ex_alpha_shapes_with_fast_location_3.cpp:45: error: ‘class Alpha_shape_3’
has no member named ‘set_alpha’
/usr/include/CGAL/Alpha_shape_3.h: In member function ‘int
CGAL::Alpha_shape_3<Dt>::number_of_solid_components() const [with Dt =
int]’:
ex_alpha_shapes_with_fast_location_3.cpp:46: instantiated from here
/usr/include/CGAL/Alpha_shape_3.h:679: error: ‘get_alpha’ was not declared
in this scope

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/New-to-CGAL-tp4519984p4520087.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page