Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Linker errors osx Random()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Linker errors osx Random()


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] Linker errors osx Random()
  • Date: Thu, 24 Sep 2009 18:37:44 +0200

Hi,

> I am trying to use the apollonius graph for one of my projects.
> Currently I am developing on osx
> and xcode. I started by installing CGAL-3.5. For this i installed all
> dependencies using macports.
> Now CGAL compiles with no errors (I am using gcc 4.0.1 from which I
> heard has some troubles with
> compiler optimizations and CGAL).
> However, when I try to compile something with xcode, I get the following
> linker error:
>
> "CGAL::Random::Random()", referenced from:
>
> CGAL::Triangulation_2<CGAL::ApolloniusGraph_2::Apollonius_graph_traits_wrapper_2<CGAL::Apollonius_graph_traits_2<CGAL::Simple_cartesian<CGAL::MP_Float>,
> CGAL::Integral_domain_without_division_tag> >,
> CGAL::Triangulation_data_structure_2<CGAL::Apollonius_graph_vertex_base_2<CGAL::Apollonius_graph_traits_2<CGAL::Simple_cartesian<CGAL::MP_Float>,
> CGAL::Integral_domain_without_division_tag>, true,
> CGAL::Triangulation_ds_vertex_base_2<void> >,
> CGAL::Triangulation_face_base_2<CGAL::Apollonius_graph_traits_2<CGAL::Simple_cartesian<CGAL::MP_Float>,
> CGAL::Integral_domain_without_division_tag>,
> CGAL::Triangulation_ds_face_base_2<void> > >
>>::Triangulation_2(CGAL::ApolloniusGraph_2::Apollonius_graph_traits_wrapper_2<CGAL::Apollonius_graph_traits_2<CGAL::Simple_cartesian<CGAL::MP_Float>,
> CGAL::Integral_domain_without_division_tag> > const&)in main.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> Does anybody have any ideas on what goes wrong and how to fix it. Am I
> missing some linker options? By the way the apollonious graph
> examples compile fine. Can anybody help me to set up a working xcode
> project? I would appreciate your help.

for the future: it would be helpful if you would also post the link
command that gets generated by Xcode (don't ask my how to do that, I
have no experience with Xcode).

My guess is that you do not link with the CGAL library.

Joachim



Archive powered by MHonArc 2.6.16.

Top of Page