Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7045421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:31:43+00:00 2026-05-28T02:31:43+00:00

I am trying to use CGAL on OS X 10.7 with Eclipse. I installed

  • 0

I am trying to use CGAL on OS X 10.7 with Eclipse. I installed CGAL via MacPorts and made Eclipse aware of that by adding /opt/local/include to it’s include lists. Now I get linker errors. I am a bit lost here, do you have any suggestions?

This is how I compile:

make all 
Building file: ../hit.cpp
Invoking: Cross G++ Compiler
g++ -I/opt/local/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"hit.d" -MT"hit.d" -o "hit.o" "../hit.cpp"
Finished building: ../hit.cpp

Building target: Hit
Invoking: Cross G++ Linker
g++  -o "Hit"  ./hit.o   
Undefined symbols for architecture x86_64:
  "CGAL::assertion_fail(char const*, char const*, int, char const*)", referenced from:
      CGAL::Interval_nt<false>::Interval_nt(double)in hit.o
      CGAL::Interval_nt<false>::Interval_nt(double, double)in hit.o
      bool CGAL::get_certain<bool>(CGAL::Uncertain<bool>)in hit.o
      CGAL::Interval_nt<false>::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in hit.o
      CGAL::Interval_nt<true>::Test_runtime_rounding_modes::Test_runtime_rounding_modes()in hit.o
      CGAL::Gmpq::Gmpq(double)in hit.o
      bool CGAL::internal::seg_seg_do_intersect_crossing<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >(CGAL::Simple_cartesian<CGAL::Interval_nt<false> >::Point_2 const&, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >::Point_2 const&, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >::Point_2 const&, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >::Point_2 const&, CGAL::Simple_cartesian<CGAL::Interval_nt<false> > const&)in hit.o
      ...
  "___gmpq_init", referenced from:
      CGAL::Gmpq_rep::Gmpq_rep()in hit.o
  "___gmpq_clear", referenced from:
      CGAL::Gmpq_rep::~Gmpq_rep()in hit.o
  "boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)", referenced from:
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::~thread_specific_ptr()in hit.o
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::~thread_specific_ptr()in hit.o
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::reset(CGAL::Lazy<CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > >*)in hit.o
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::reset(CGAL::Lazy<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > >*)in hit.o
  "boost::detail::get_tss_data(void const*)", referenced from:
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Segment_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::get() constin hit.o
      boost::thread_specific_ptr<CGAL::Lazy<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<false> > >, CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Gmpq> >, CGAL::Gmpq, CGAL::Cartesian_converter<CGAL::Simple_cartesian<CGAL::Gmpq>, CGAL::Simple_cartesian<CGAL::Interval_nt<false> >, CGAL::NT_converter<CGAL::Gmpq, CGAL::Interval_nt<false> > > > >::get() constin hit.o
  "CGAL::precondition_fail(char const*, char const*, int, char const*)", referenced from:
      CGAL::Handle::Handle(CGAL::Handle const&)in hit.o
      CGAL::Handle::operator=(CGAL::Handle const&)in hit.o
      CGAL::Uncertain<bool>::Uncertain(bool, bool)in hit.o
      CGAL::Uncertain<CGAL::Sign>::Uncertain(CGAL::Sign, CGAL::Sign)in hit.o
  "_mpfr_init2", referenced from:
      CGAL::Real_embeddable_traits<CGAL::Gmpq>::To_interval::operator()(CGAL::Gmpq const&) constin hit.o
  "_mpfr_set_q", referenced from:
      CGAL::Real_embeddable_traits<CGAL::Gmpq>::To_interval::operator()(CGAL::Gmpq const&) constin hit.o
  "_mpfr_get_d", referenced from:
      CGAL::Real_embeddable_traits<CGAL::Gmpq>::To_interval::operator()(CGAL::Gmpq const&) constin hit.o
  "_mpfr_clear", referenced from:
      CGAL::Real_embeddable_traits<CGAL::Gmpq>::To_interval::operator()(CGAL::Gmpq const&) constin hit.o
  "___gmpq_set_d", referenced from:
      CGAL::Gmpq::Gmpq(double)in hit.o
  "___gmpq_cmp", referenced from:
      CGAL::Gmpq::operator<(CGAL::Gmpq const&) constin hit.o
  "___gmpq_sub", referenced from:
      CGAL::Gmpq::operator-=(CGAL::Gmpq const&)in hit.o
  "___gmpq_mul", referenced from:
      CGAL::Gmpq::operator*=(CGAL::Gmpq const&)in hit.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [Hit] Error 1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:31:43+00:00Added an answer on May 28, 2026 at 2:31 am

    CGAL uses cmake as building tool and all compiler flags that should be used for a program using CGAL are set up in the file CGALConfig.cmake.

    In your case, you are at least missing -lCGAL -lgmp -lmpfr -lboost_thread.

    Also look at your CGALConfig.cmake files to check gcc options required (such as frounding-math for example).

    Note that cmake can generate makefiles for eclipse.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build CGAL for windows to use in my project under Visual
I have a regex that I'm trying use to validate against strings. Trying to
I have a 3rd party DLL that I am trying to use in a
I am trying use the jQuery table sorter plugin for a table that is
Trying to use WMI to obtain a list of installed programs for Windows XP.
I am trying use the mysql connector in c++ in ubuntu. It appears that
I'm trying use eco for client-side templating. I have multiple .eco templates that I'd
I was trying use a set of filter functions to run the appropriate routine,
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.