Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 答复: gmp link error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 答复: gmp link error


Chronological Thread 
  • From: 杨宝容 <>
  • To:
  • Subject: Re: [cgal-discuss] 答复: gmp link error
  • Date: Sun, 26 Oct 2014 21:33:29 +0800 (GMT+08:00)

hi, Jiang Luo,
yes, I also have added the inlude and lib path to include directories and
library directories, but it still doesn't work.

When i compiled CGAL by using Cmake, i also checked both "with_GMP" and
"with_MPFR". Any other possibility of leading to such a problem?

Baorong

> -----原始邮件-----
> 发件人: "蒋罗"
> <>
> 发送时间: 2014-10-26 21:16:54 (星期日)
> 收件人:
>
> 抄送:
> 主题: [cgal-discuss] 答复: gmp link error
>
> Baorong
>
> Hi, do you add "D:\Program Files\cgal-4.5\auxiliary\gmp" to your environment
> path?
>
> Luo
>
> -----邮件原件-----
> 发件人:
>
>
> [mailto:]
>
> 表 Baorong
> 发送时间: 2014年10月26日 21:12
> 收件人:
>
> 主题: [cgal-discuss] gmp link error
>
> Hi,everyone.
>
> I have encountered a Gmp link problem when I tried to compile a project
> with CGAL 4.2, boost 1.56, qt4.8,and VS2010 on Win7 32bit. The error is
> listed
> below:
>
> cvt.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>cvt.obj : error LNK2019: unresolved external symbol
> 1>__imp____gmpq_set_d
> referenced in function "public: __thiscall CGAL::Gmpq::Gmpq(double)" (??
> 0Gmpq@CGAL@@QAE@N@Z)
> 1>cvt.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>cvt.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)
>
> It seems the Gmp is not correctly linked . After refer to several similar
> discusses, I tried to use two Preprocessor definition, CGAL_NO_AUTOLINK_MPFR
> and CGAL_NO_AUTOLINK_GMP, to avoid the lack gmp-vc100-mt-gd.lib error Also,
> i tried to add two lib files : libgmp-10.lib and libmpfr-4.lib to the
> additional dependencies.
> However, it still doesn't work.
>
> Does anyone know how to solve this problem ?
> Thank for your time and help.
>
> --Monica
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>




Archive powered by MHonArc 2.6.18.

Top of Page