Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: How to use CGAL functions directly in my source code, without using cmake?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: How to use CGAL functions directly in my source code, without using cmake?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: How to use CGAL functions directly in my source code, without using cmake?
  • Date: Thu, 06 Oct 2011 07:36:02 +0200

If you are expected to compile on one platform, my advice would be to
first use cmake on a CGAL example and then do "make VERBOSE=True".
You will then see the command used to compile the example.
You will see for example that you need to link with libCGAL.

Note that some options used for the compiler are specific to the
platform used and are set when configuring CGAL.

Sebastien.

Yuliya Tarabalka wrote:
When I start including headers, for instance #include &lt;CGAL/Exact_predicates_inexact_constructions_kernel.h&gt;

I get an error:

Undefined symbols:
"CGAL::assertion_fail(char const*, char const*, int, char const*)",
referenced from: __static_initialization_and_destruction_0(int, int)in heap.o
//many similar lines with different object files...
__static_initialization_and_destruction_0(int, int)in
eliminate_artifacts.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [myprogram] Error 1


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-use-CGAL-functions-directly-in-my-source-code-without-using-cmake-tp3875930p3876238.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.16.

Top of Page