Subject: CGAL users discussion list
List archive
- From: Philipp Moeller <>
- To:
- Subject: Re: [cgal-discuss] How to include CGAL in my own code
- Date: Wed, 07 Dec 2011 01:15:43 +0100
You need to link with libCGAL as well. In XCode this should be somewhere
under "Choose Project -> Add to Project".
HTH,
Philipp
RJ
<>
writes:
> I am trying to use CGAL in my own code. I am not sure how to include
> it. So far, I've successfully installed CGAL in my Mac OS 10.6 and can
> run demos and examples. I am trying to use 2D Delaunay
> triangulation in my own code in Xcode, i also set "header search path"
> to the folders of boost and CGAL in my Xcode project. I simply include
> CGAL in my code as follows: #include <CGAL/
> Exact_predicates_inexact_constructions_kernel.h> #include
> <CGAL/Projection_traits_xy_3.h> #include
> <CGAL/Delaunay_triangulation_2.h> without calling any function in
> CGAL. However i got some link errors
> like: "CGAL::assertion_fail(char const*, char const*, int, char
> const*)", referenced from:
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o ld: symbol(s) not found collect2: ld returned 1 exit status
> Undefined symbols: "CGAL::assertion_fail(char const*,
> char const*, int, char const*)", referenced from:
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o
> CGAL::Interval_nt::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in
> main.o ld: symbol(s) not found collect2: ld returned 1 exit status I
> am wondering if there is any way to correct these
> errors. Thanks so much for your help!!
> ------------------------------------------
> View this message in context: How to include CGAL in my own code
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>
- [cgal-discuss] How to include CGAL in my own code, RJ, 12/06/2011
- Re: [cgal-discuss] How to include CGAL in my own code, Philipp Moeller, 12/07/2011
- [cgal-discuss] Re: How to include CGAL in my own code, RJ, 12/07/2011
- [cgal-discuss] Re: How to include CGAL in my own code, RJ, 12/09/2011
- Re: [cgal-discuss] Re: How to include CGAL in my own code, Sebastien Loriot (GeometryFactory), 12/10/2011
- Re: [cgal-discuss] How to include CGAL in my own code, Philipp Moeller, 12/07/2011
Archive powered by MHonArc 2.6.16.