Subject: CGAL users discussion list
List archive
- From: Stephane Tayeb <>
- To:
- Subject: Re: [cgal-discuss] Linker errors osx Random()
- Date: Thu, 24 Sep 2009 16:37:42 +0200
Martin Weier wrote:
Hi,Hi Martin,
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.
- Martin
Could you please give more details about your problem :
* did you generate an XCode project using "cmake -GXode" command line or are you trying to setup one by yourself ?
* what are exactly the files you are trying to compile ?
I personnaly use XCode to compile CGAL stuff without problems.
Regards,
NB: you may change the compiler version using "Get info" on one target then setting another compiler on "C/C++ compiler version" line.
--
Stephane Tayeb
Software engineer - INRIA Sophia Antipolis
Geometrica Project-Team
- [cgal-discuss] Linker errors osx Random(), Martin Weier, 09/22/2009
- Re: [cgal-discuss] Linker errors osx Random(), Stephane Tayeb, 09/24/2009
- Re: [cgal-discuss] Linker errors osx Random(), Joachim Reichel, 09/24/2009
Archive powered by MHonArc 2.6.16.