Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

cgal

Started by mike74 Aug 7, 2005 at 1:55 PM 1 replies 1.6k views
Original Post
mike74
mike74
I'm trying to compile the CGAL file examples/Convex_hull_3/ch_quickhull_3_ex.C with Dev-C++, and I get a few errors: 766 C:\cgal\include\CGAL\Quotient.h no matching function for call to `to_double(const CGAL::MP_Float&)' note C:\cgal\include\CGAL\double.h:52 candidates are: const double& CGAL::to_double(const double&) note C:\cgal\include\CGAL\double.h:52 double CGAL::to_double(float) note C:\cgal\include\CGAL\double.h:52 double CGAL::to_double(int) note C:\cgal\include\CGAL\double.h:52 double CGAL::to_double(long int) note C:\cgal\include\CGAL\double.h:52 double CGAL::to_double(short int) Anyone know how I can get it to work? Mike C. http://www.coolgroups.com/zoomer/
Mike C.http://www.coolgroups.com/zoomer/http://www.coolgroups.com/ez/
Basiror
Basiror
try casting CGAL::MP_Float to float

static_cast(CGAL::MP_Float)
http://www.8ung.at/basiror/theironcross.html
mike74
mike74
I think the problem is that Microsoft's compiler is treating the files as C files since they have the extension .C.

Mike C.
http://www.coolgroups.com/zoomer/
Mike C.http://www.coolgroups.com/zoomer/http://www.coolgroups.com/ez/

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.