Subject: CGAL users discussion list
List archive
- From: tina rumi <>
- To:
- Subject: Re: [cgal-discuss] linker error in cgal example
- Date: Wed, 9 Dec 2009 13:14:58 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ArxfxmAKt34KuMC3JksCBvYm+QWuHAC4MuPNwRObkRsmSWYIv3C6A6e9sHyLltOqcm 2kczIovzcQ/UYX0myWX40at6xyQ5phcwTmMqEiAFwlMuPiIpsXKBj2MmLfiyGJ3bAyRe VvoUnaT24j8jUZUTcE0nfqdBCoZkJG4VGKk7M=
Thanks Laurent, how should I do that? I guess that should be problem but when I checked my c++ directory , it was already in lib and include file, it is also in the windows environment "path" too. is there somewhere else that I need to check.
Thanks,
Tina
2009/12/9 Laurent Saboret <>
Looks like you need to link with GMP library.
Laurent Saboret
tina rumi wrote: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
Ce courrier électronique et toutes les pièces éventuellement jointes qu’il contient sont CONFIDENTIELS et destinés exclusivement à l’usage de leur destinataire. Si une erreur de transmission ou une adresse erronée a mal dirigée ce courrier, merci d’en informer l’expéditeur en lui faisant une réponse par courrier électronique dès réception. Si vous n’êtes pas le destinataire de ce courrier, vous ne devez pas l’utiliser, le conserver, en faire état, le distribuer, le copier, l’imprimer ou en révéler le contenu à une tierce partie.
Ce courrier électronique est à usage strictement informatif et ne saurait engager de quelque manière que ce soit INFOTERRA France SAS, ni ses filiales.
This e-mail and any attachments hereto are CONFIDENTIAL and intended solely for the use of the addressee. If you have received this e-mail in error please send it back to the person that sent it to you.
If you have received it in error, please notify the sender by return email. If you are not the addressee of this email, you must not use, keep, disseminate, copy, print or otherwise deal with it.
This email is for information only and will not bind INFOTERRA France SAS in any contract or obligation, nor its subsidiaries.
- [cgal-discuss] linker error in cgal example, tina rumi, 12/09/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Saboret, 12/09/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/09/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Saboret, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, Pierre Alliez, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, Pierre Alliez, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, Pierre Alliez, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Rineau (GeometryFactory), 12/11/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/11/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Saboret, 12/11/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/11/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/11/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Saboret, 12/10/2009
- Re: [cgal-discuss] linker error in cgal example, tina rumi, 12/09/2009
- Re: [cgal-discuss] linker error in cgal example, Laurent Saboret, 12/09/2009
Archive powered by MHonArc 2.6.16.