Subject: CGAL users discussion list
List archive
- From: Evan Behar <>
- To:
- Subject: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq
- Date: Sat, 27 Apr 2013 17:32:04 -0400
Hi,
When I try to compile this program, I get the following error:
I have the following code:
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Lazy_exact_nt.h>
#include <CGAL/Extended_cartesian.h>
typedef CGAL::Extended_cartesian< CGAL::Lazy_exact_nt<CGAL::Gmpq> > Kernel;
typedef CGAL::Point_3<Kernel> Point;
int main() {
Point p(1.0f,1.0f,1.0f);
return 0;
}
When I try to compile this program, I get the following error:
In file included from /opt/local/CGAL-4.1/include/CGAL/assertions.h:34:0,
from /opt/local/CGAL-4.1/include/CGAL/basic.h:42,
from /opt/local/CGAL-4.1/include/CGAL/Polyhedron_3.h:24,
from /home/ebehar/test/test.cpp:1:
/opt/local/CGAL-4.1/include/CGAL/Point_3.h: In instantiation of ‘class CGAL::Point_3<CGAL::Extended_cartesian<CGAL::Lazy_exact_nt<CGAL::Gmpq> > >’:
/home/ebehar/test/test.cpp:12:10: required from here
/opt/local/CGAL-4.1/include/CGAL/assertions.h:124:6: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
BOOST_STATIC_ASSERT(EX)
^
/opt/local/CGAL-4.1/include/CGAL/Point_3.h:47:3: note: in expansion of macro ‘CGAL_static_assertion’
CGAL_static_assertion((boost::is_same<Self, typename R_::Point_3>::value));
Is there something additional I have forgotten to do in order to use the Extended_cartesian kernel with Point_3 or Vector_3?
Thanks,
Evan
- [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Evan Behar, 04/27/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Marc Glisse, 04/27/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Evan Behar, 04/28/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Marc Glisse, 04/28/2013
- [cgal-discuss] Trouble with instalation of CGAL, Eliseu Castelo Branco Jr, 04/28/2013
- Re: [cgal-discuss] Trouble with instalation of CGAL, Marc Glisse, 04/28/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Evan Behar, 04/28/2013
- [cgal-discuss] Trouble with instalation of CGAL, Eliseu Castelo Branco Jr, 04/28/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Marc Glisse, 04/28/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Evan Behar, 04/28/2013
- Re: [cgal-discuss] Converting FT to double in Extended_cartesian with Gmpq, Marc Glisse, 04/27/2013
Archive powered by MHonArc 2.6.18.