Subject: CGAL users discussion list
List archive
- From: "Fernando Cacciola" <>
- To: <>
- Subject: Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows
- Date: Fri, 14 Mar 2008 17:12:41 -0300
- Organization: Geometry Factory
Hello Daniel,
Yes, the pre-compiled libraries are there.I built the gmp binaries that are distributed in the Windows installer using a modified version of Brian Gladman's GMP/MPFR for Windows:
http://fp.gladman.plus.com/computing/gmp4win.htm
(these days Mr Gladman supports Visual Studio 2008, but at the time I built these it was Visual Studio 2005).
I've seen this error reported in the past, but I was never able to figure out what is causing it because I can locally compile CGAL programs with these debug gmp binaries with no problems.
I suspect the problem is the existence of slighly differnent CRT versions for VS2005.
I've modified Gladman's project file to accomodate the autolink name mangling used in the binaries distributed with CGAL. I suppose that as a last resort you could do the same.
A probably much simpler path for you would be to build gmp using Gladman's project files as is and then disable autolinking for gmp and mpfr via the compile time switches:
CGAL_NO_AUTOLINK_GMP
CGAL_NO_AUTOLINK_MPFR
in which case you'll have to setup your project file to link against gmp.lib explicitely.
Or, keep autolinking but disable name mangling via the compiler flag:
CGAL_AUTO_LINK_NOMANGLE
This will autolink to "gmp.lib" and "mpfr.lib", but you'll have to setup the link directory where these libraries are, which won't be the same for Release and Debug (as it is now since the name mangling discriminates that)
HTH
Fernando Cacciola
GeometryFactory
- Re: Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, drk07, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Laurent Saboret, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Daniel Ryan King, 03/14/2008
- RE: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Louis Feng, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Fernando Cacciola, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Daniel Ryan King, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Daniel Ryan King, 03/14/2008
- Re: [cgal-discuss] Problem with CGAL-3.3.1 and Gmp on Windows, Laurent Saboret, 03/14/2008
Archive powered by MHonArc 2.6.16.