Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem with gmp linking with 64-bit Windows 7 & Visual Studio 2010 and CGAL 4.0.2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem with gmp linking with 64-bit Windows 7 & Visual Studio 2010 and CGAL 4.0.2


Chronological Thread 
  • From: Karen Daniels <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with gmp linking with 64-bit Windows 7 & Visual Studio 2010 and CGAL 4.0.2
  • Date: Wed, 05 Sep 2012 08:48:56 -0400

I did use the installer. When running cmake it looks like the gmp and mpfr libraries are the ones I downloaded.
I wonder if the problem is that I'm trying to put together a debug version and perhaps the gmp libraries bundled with CGAL 4.0.2 are only for the release version??

- Karen

On 9/5/2012 1:29 AM, Sebastien Loriot (GeometryFactory) wrote:
Did you use the installer or get directly the source?
When running cmake, is the library found for gmp and mpfr the one
you downloaded?

Sebastien.

On 09/04/2012 10:46 PM, Karen Daniels wrote:
I'm looking for help with CGAL 4.0.2 and GMP using 64-bit Windows 7 and
Visual Studio 2010 . I downloaded the precompiled GMP files as
instructed and I built the 64-bit Debug version of CGAL 4.0.2 using
cmake-gui.

I added the CGAL and GMP lib directories locations to my Visual Studio
project's (Debug mode) property page under VC++ Directories -> Library
Directories. I also explicitly added libgmp-10.lib and libmpfr-4.lib as
additional dependencies under Linker -> Input.

In spite of that, I have unresolved symbols for example program:

1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_clear referenced in function "public: __thiscall
CGAL::Gmpq_rep::~Gmpq_rep(void)" (??1Gmpq_rep@CGAL@@QAE@XZ)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_set_d referenced in function "public: __thiscall
CGAL::Gmpq::Gmpq(double)" (??0Gmpq@CGAL@@QAE@N@Z)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_init referenced in function "public: __thiscall
CGAL::Gmpq_rep::Gmpq_rep(void)" (??0Gmpq_rep@CGAL@@QAE@XZ)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_sub referenced in function "public: class CGAL::Gmpq &
__thiscall CGAL::Gmpq::operator-=(class CGAL::Gmpq const &)"
(??ZGmpq@CGAL@@QAEAAV01@ABV01@@Z)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_cmp referenced in function "public: bool __thiscall
CGAL::Gmpq::operator<(class CGAL::Gmpq const &)const "
(??MGmpq@CGAL@@QBE_NABV01@@Z)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_mul referenced in function "public: class CGAL::Gmpq &
__thiscall CGAL::Gmpq::operator*=(class CGAL::Gmpq const &)"
(??XGmpq@CGAL@@QAEAAV01@ABV01@@Z)
1>Example.obj : error LNK2019: unresolved external symbol
__imp____gmpq_equal referenced in function "public: bool __thiscall
CGAL::Gmpq::operator==(class CGAL::Gmpq const &)const "
(??8Gmpq@CGAL@@QBE_NABV01@@Z)
1>C:\Users\Karen_Daniels\Documents\Teaching\UML\91504_CG\91504_F12\CGAL_Test\Debug\CGAL_Polygon_test.exe
: fatal error LNK1120: 7 unresolved externals
1>
1>Build FAILED.
1>

I have previously built other versions of CGAL using Visual Studio, but
not under Windows 7.
Any help would be greatly appreciated.

- Karen Daniels

-------------------------------------------

Karen Daniels, Ph.D.
Associate Professor
Department of Computer Science
University of Massachusetts Lowell

One University Avenue
Olsen Hall, Room 216
Lowell, MA 01854

Phone: 978-934-3631
Fax: 978-934-3551
Email:

URL: http://www.cs.uml.edu/~kdaniels







--
-------------------------------------------

Karen Daniels, Ph.D.
Associate Professor
Department of Computer Science
University of Massachusetts Lowell

One University Avenue
Olsen Hall, Room 216
Lowell, MA 01854

Phone: 978-934-3631
Fax: 978-934-3551
Email:

URL: http://www.cs.uml.edu/~kdaniels




Archive powered by MHonArc 2.6.18.

Top of Page