Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Question about win64 CGAL version

Subject: CGAL users discussion list

List archive

[cgal-discuss] Question about win64 CGAL version


Chronological Thread 
  • From: Vivien Clauzon <>
  • To:
  • Subject: [cgal-discuss] Question about win64 CGAL version
  • Date: Wed, 16 Nov 2011 16:39:05 +0100

Hello,

I've just tried to use CGAL for a win64 visual studio 10 project and i'm facing quite an issue. Indeed, allthough my project compiles and works fine in 32 bits, I cannot get it to compile in 64 bits because of the missing gmp and mpfr in CGAL-3.9\auxiliary\gmp\lib and the missing tauc in CGAL-3.9\auxiliary\taucs.

I can find 64 bits pre build tauc binaries, or I can build it myself if requiered, but I can't find a way to get 64 bits gmp and mpfr.

It seems that mpir (http://mpir.org/) can provide a solution but entry points in mpir.lib and gmp.lib are differents as cgal is looking for things like "__imp___gmpz_clear" while mpir is providing "__gmpz_clear".

Of course, in the documentation of CGAL, i can read :

Gmp
 and Mpfr are libraries for multi precision integers and rational numbers, and for multi precision floating point numbers.

Cgal combines floating point arithmetic with exact arithmetic, in order to be efficient and reliable. Cgal has a built-in number type for that, but Gmp and Mpfr provide a faster solution, and we recommend to use them.

Having Gmp version 4.2 or higher and Mpfr version 2.2.1 or higher installed is recommended. These libraries can be obtained from http://gmplib.org/ and http://www.mpfr.org/, respectively.

As Visual C++ is not properly supported by the Gmp and Mpfr projects, we provide precompiled versions of Gmp and Mpfr, which can be downloaded with the installer CGAL-3.9-Setup.exe.


and using the apropriate flag in CMAKE I was able to get CGAL working without gmp in both 32 and 64 bits and finally link my project correctly.


Finaly my question is .... does someone have found a way to use gmp in 64 bits windows projects ?

Thanks in advance.



NUMTECH Vivien CLAUZON
Ingénieur d'études et de recherche
6, allée Alan Turing - BP 30242 - Parc Technologique de la Pardieu
63175 AUBIERE Cedex - FRANCE
Tél: 33 (0)4 73.28.75.95 - Fax: 33 (0)4.73.28.75.99
Web: http://www.numtech.fr




Archive powered by MHonArc 2.6.16.

Top of Page