Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Straight skeleton with holes?
- Date: Thu, 29 Sep 2011 08:17:07 +0200
You did not link with libCGAL_CORE.so
Sebastien.
Winnie Hellmann wrote:
Hi list,
I can't figure out how to use straight skeleton algorithm for polygon with holes. This example does not compile:
#include<boost/shared_ptr.hpp>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Straight_skeleton_2.h>
#include <CGAL/Polygon_with_holes_2.h>
#include <CGAL/create_straight_skeleton_from_polygon_with_holes_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Polygon_with_holes_2<Kernel> Polygon_with_holes;
typedef CGAL::Straight_skeleton_2<Kernel> Straight_skeleton;
typedef boost::shared_ptr<Straight_skeleton> Skeleton_Ptr;
int main()
{
Polygon_with_holes polygon;
Skeleton_Ptr ptr = CGAL::create_interior_straight_skeleton_2(polygon);
return 0;
}
The error message I get is:
Linking CXX executable test
CMakeFiles/test.dir/test.cpp.o: In function `BigFloat':
/usr/local/include/CGAL/CORE/BigFloat.h:61: undefined reference to `CORE::BigFloatRep::BigFloatRep(double)'
CMakeFiles/test.dir/test.cpp.o: In function `CORE::BigFloat::doubleValue() const':
/usr/local/include/CGAL/CORE/BigFloat.h:212: undefined reference to `CORE::BigFloatRep::toDouble() const'
CMakeFiles/test.dir/test.cpp.o: In function `CORE::BigFloat::sqrt(CORE::extLong const&) const':
/usr/local/include/CGAL/CORE/BigFloat.h:345: undefined reference to `CORE::BigFloatRep::sqrt(CORE::BigFloatRep const&, CORE::extLong const&)'
CMakeFiles/test.dir/test.cpp.o: In function `CORE::sqrt(CORE::BigFloat const&)':
/usr/local/include/CGAL/CORE/BigFloat.h:490: undefined reference to `CORE::defBFsqrtAbsPrec'
collect2: ld returned 1 exit status
make[2]: *** [test] Error 1
make[1]: *** [CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2
I am using CGAL 3.9 (also tried 3.6.1 earlier) with GCC 4.5.2 on Ubuntu.
Can anybody tell me what I am doing wrong? I totally don't get what this error means. Also I tried to make a straight skeleton out of an arrangement - but didn't find any function for that. Is this actually possible?
Thanks,
Winnie
- [cgal-discuss] Straight skeleton with holes?, Winnie Hellmann, 09/29/2011
- Re: [cgal-discuss] Straight skeleton with holes?, Sebastien Loriot (GeometryFactory), 09/29/2011
- Re: [cgal-discuss] Straight skeleton with holes?, Winnie Hellmann, 09/29/2011
- Re: [cgal-discuss] Straight skeleton with holes?, Sebastien Loriot (GeometryFactory), 09/29/2011
Archive powered by MHonArc 2.6.16.