Subject: CGAL users discussion list
List archive
- From: 蒋罗 <>
- To: <>
- Subject: [cgal-discuss] 答复: gmp link error
- Date: Sun, 26 Oct 2014 21:16:54 +0800
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
- [cgal-discuss] gmp link error, Baorong, 10/26/2014
- [cgal-discuss] 答复: gmp link error, 蒋罗, 10/26/2014
- Re: [cgal-discuss] 答复: gmp link error, 杨宝容, 10/26/2014
- [cgal-discuss] 答复: 答复: gmp link error, 蒋罗, 10/26/2014
- Re: [cgal-discuss] 答复: 答复: gmp link error, brYang, 10/26/2014
- Re: [cgal-discuss] 答复: gmp link error, brYang, 10/26/2014
- [cgal-discuss] 答复: 答复: gmp link error, 蒋罗, 10/26/2014
- [cgal-discuss] 答复: 答复: gmp link error, 蒋罗, 10/26/2014
- Re: [cgal-discuss] 答复: gmp link error, 杨宝容, 10/26/2014
- [cgal-discuss] 答复: gmp link error, 蒋罗, 10/26/2014
Archive powered by MHonArc 2.6.18.