Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to include CGAL in my own code

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to include CGAL in my own code


Chronological Thread 
  • 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.
>



Archive powered by MHonArc 2.6.16.

Top of Page