Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] linker error in cgal example

Subject: CGAL users discussion list

List archive

[cgal-discuss] linker error in cgal example


Chronological Thread 
  • From: tina rumi <>
  • To:
  • Subject: [cgal-discuss] linker error in cgal example
  • Date: Tue, 8 Dec 2009 18:10:06 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=B1Juf0EjBNODRQ57YB+Hswuh13K/iv6PmeVQ08G/jzrq/MYZ6NL5iRflnSJVGQLga1 GoNcSz+diML57FzVfZgOiwAwkkjo6XFl/Ns6Zl9p/NSq64nj104TqYUrfoAx8HxC90/A ePDzHOgjXlzIENEvQ3zwMDvEh5BspRcXjyAFg=

Hey guys,

when I try to run this cgal example:
examples/Surface_reconstruction_points_3/poisson_reconstruction_example.cpp


I get following linker error:

1>Linking...
1>cloud_points.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>cloud_points.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>cloud_points.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>cloud_points.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>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_cmp_si referenced in function "bool __cdecl CGAL::operator==(class CGAL::Gmpq const &,int)" (??8CGAL@@YA_NABVGmpq@0@H@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp__mpfr_clear referenced in function "public: struct std::pair<double,double> __thiscall CGAL::Real_embeddable_traits<class CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const " (??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QBE?AU?$pair@NN@std@@ABVGmpq@2@@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp__mpfr_get_d referenced in function "public: struct std::pair<double,double> __thiscall CGAL::Real_embeddable_traits<class CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const " (??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QBE?AU?$pair@NN@std@@ABVGmpq@2@@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp__mpfr_set_q referenced in function "public: struct std::pair<double,double> __thiscall CGAL::Real_embeddable_traits<class CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const " (??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QBE?AU?$pair@NN@std@@ABVGmpq@2@@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp__mpfr_init2 referenced in function "public: struct std::pair<double,double> __thiscall CGAL::Real_embeddable_traits<class CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const " (??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QBE?AU?$pair@NN@std@@ABVGmpq@2@@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_add referenced in function "public: class CGAL::Gmpq & __thiscall CGAL::Gmpq::operator+=(class CGAL::Gmpq const &)" (??YGmpq@CGAL@@QAEAAV01@ABV01@@Z)
1>cloud_points.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>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_set_si referenced in function "public: __thiscall CGAL::Gmpq::Gmpq(int)" (??0Gmpq@CGAL@@QAE@H@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_div referenced in function "public: class CGAL::Gmpq & __thiscall CGAL::Gmpq::operator/=(class CGAL::Gmpq const &)" (??_0Gmpq@CGAL@@QAEAAV01@ABV01@@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_cmp referenced in function "bool __cdecl CGAL::operator<(class CGAL::Gmpq const &,class CGAL::Gmpq const &)" (??MCGAL@@YA_NABVGmpq@0@0@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_equal referenced in function "bool __cdecl CGAL::operator==(class CGAL::Gmpq const &,class CGAL::Gmpq const &)" (??8CGAL@@YA_NABVGmpq@0@0@Z)
1>cloud_points.obj : error LNK2019: unresolved external symbol __imp____gmpq_set referenced in function ___gmpq_neg
1>F:\fingerprint\codes\cloud_points\Debug\cloud_points.exe : fatal error LNK1120: 16 unresolved externals


do you have any suggestion to fix this. I appreciate your help.

Thanks,
Tina



Archive powered by MHonArc 2.6.16.

Top of Page