Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Error
- Date: Wed, 21 Feb 2018 08:21:44 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:TKfUPhXh7CL2z3bt65NKl8L7y8/V8LGtZVwlr6E/grcLSJyIuqrYbByHt8tkgFKBZ4jH8fUM07OQ7/i7HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba98IRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KhsVBLlhiUKOjAg/G3LhcF7kaZXrRK9qxB6xYPffYObO+dkfq7FYN0UW2RBUMZSWSJPDIyzYIkAAPYOM+tDs4nwpUEDoQeiCQSiBu7izCJDiH/s3a091uQsCQ/K0hE+EN0VqnvUt8n1NKYMXuCz0aLGyzLDb+lX2Tf69IjDbxQtr/CSUrJ3dMre11UvFxnFj1uQs4PqIy+V1uMXs2mb6uZsW/+khmk8qwF1pTiv3MYsio7Vho4Pz1DE8T50wIkwJdKiSU57ZcSoH4dXtyGfLoZ7RN4pTW9vuCY/0LIGuJi7cTAMyJs93BHQcPiHfJaS7h3/U+aRJDF1j29mdrKnnxu+71Ssx+nmWsS30FtGtDdJnsfPu3wXyhDe6MuKRuN/80qiwzqDyQ/e5+BeLUwpkafWJYQtz7wwm5cVrE/NBDX5mF/sg6+Tbkgk+van6+DgYrj+o5+TLY50igXnPqUggMyzHf00MgYTU2WZ+umwzrLj/Ur+QLVFiv05jLPVv4zdJcQevqK5AglV3Zg/6xunETuqzNAVkWMEIV9FYh6LkpblNlLULPzlD/qygEygkDJxyPDHOr3hDI/NLn/GkLr5ZrZ970lcyBAyzdBY+5JYELQBIPboV0/+sdzXFB45Mwiuz+n7D9V905sSWXiTDa+BLKPSrViI6/ozLOmDfoAVvC/xJOUk5/71kXA5hEQdfbKy0JsMaHG4G+xmLF+DbXrthNcBC2YKsRAkQOzkkl3RGQJUMn29VqZ56jAgA5+9Fq/CQJqsifqPxnSVBJpTMyp9B1qFCmvpeoPMf/AWaSWOao9OnzsBWKS7WqEo3g2prh67gfIzNe7T4CwfqdTm0PB64uTSkVc58jkiXJfV6H2EU2whxjBAfDQxxq0q/BQkmwWzlJNgivkdLuR9ovZAUwM0L5nZlrUoBNX7WwaHddCMGg//HoeWRAopR9d0+OcgJl5nEoz73B/G1iuuRbQSku7TXcFmwufnx3H0Yv1F5TPG2a0m1Qd0R8JOMSi5nPY6+VGMV8jGlEKWk6vsfqMZjnbA
You must link with libgmp, libmpfr and libCGAL.
Sebastien.
On 02/21/2018 07:40 AM, iampriyanshi wrote:
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_add
referenced in function "class CGAL::Gmpq __cdecl CGAL::operator+(class
CGAL::Gmpq const &,class CGAL::Gmpq const &)"
(??HCGAL@@YA?AVGmpq@0@AEBV10@0@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_clear
referenced in function "public: __cdecl CGAL::Gmpq_rep::~Gmpq_rep(void)"
(??1Gmpq_rep@CGAL@@QEAA@XZ)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_cmp
referenced in function "public: bool __cdecl CGAL::Gmpq::operator<(class
CGAL::Gmpq const &)const " (??MGmpq@CGAL@@QEBA_NAEBV01@@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_cmp_si
referenced in function "public: bool __cdecl
CGAL::Gmpq::operator==(int)const " (??8Gmpq@CGAL@@QEBA_NH@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_div
referenced in function "class CGAL::Gmpq __cdecl CGAL::operator/(class
CGAL::Gmpq const &,class CGAL::Gmpq const &)"
(??KCGAL@@YA?AVGmpq@0@AEBV10@0@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_equal
referenced in function "public: bool __cdecl CGAL::Gmpq::operator==(class
CGAL::Gmpq const &)const " (??8Gmpq@CGAL@@QEBA_NAEBV01@@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_init
referenced in function "public: __cdecl CGAL::Gmpq_rep::Gmpq_rep(void)"
(??0Gmpq_rep@CGAL@@QEAA@XZ)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_mul
referenced in function "class CGAL::Gmpq __cdecl CGAL::operator*(class
CGAL::Gmpq const &,class CGAL::Gmpq const &)"
(??DCGAL@@YA?AVGmpq@0@AEBV10@0@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_set
referenced in function __gmpq_neg
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_set_d
referenced in function "public: __cdecl CGAL::Gmpq::Gmpq(double)"
(??0Gmpq@CGAL@@QEAA@N@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_set_si
referenced in function "public: __cdecl CGAL::Gmpq::Gmpq(int)"
(??0Gmpq@CGAL@@QEAA@H@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpq_sub
referenced in function "class CGAL::Gmpq __cdecl CGAL::operator-(class
CGAL::Gmpq const &,class CGAL::Gmpq const &)"
(??GCGAL@@YA?AVGmpq@0@AEBV10@0@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpn_add_n
referenced in function __gmpn_add
main.obj : error LNK2019: unresolved external symbol __imp___gmpn_mul
referenced in function "struct CGAL::Mpzf __cdecl CGAL::operator*(struct
CGAL::Mpzf const &,struct CGAL::Mpzf const &)"
(??DCGAL@@YA?AUMpzf@0@AEBU10@0@Z)
main.obj : error LNK2019: unresolved external symbol __imp___gmpn_sub_n
referenced in function __gmpn_sub
main.obj : error LNK2019: unresolved external symbol __imp___gmpn_copyi
referenced in function "public: __cdecl CGAL::Mpzf::Mpzf(struct CGAL::Mpzf
const &)" (??0Mpzf@CGAL@@QEAA@AEBU01@@Z)
main.obj : error LNK2019: unresolved external symbol __imp_mpfr_init2
referenced in function "public: struct std::pair<double,double> __cdecl
CGAL::Real_embeddable_traits<class
CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const "
(??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QEBA?AU?$pair@NN@std@@AEBVGmpq@2@@Z)
main.obj : error LNK2019: unresolved external symbol __imp_mpfr_clear
referenced in function "public: struct std::pair<double,double> __cdecl
CGAL::Real_embeddable_traits<class
CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const "
(??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QEBA?AU?$pair@NN@std@@AEBVGmpq@2@@Z)
main.obj : error LNK2019: unresolved external symbol __imp_mpfr_set_q
referenced in function "public: struct std::pair<double,double> __cdecl
CGAL::Real_embeddable_traits<class
CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const "
(??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QEBA?AU?$pair@NN@std@@AEBVGmpq@2@@Z)
main.obj : error LNK2019: unresolved external symbol __imp_mpfr_get_d
referenced in function "public: struct std::pair<double,double> __cdecl
CGAL::Real_embeddable_traits<class
CGAL::Gmpq>::To_interval::operator()(class CGAL::Gmpq const &)const "
(??RTo_interval@?$Real_embeddable_traits@VGmpq@CGAL@@@CGAL@@QEBA?AU?$pair@NN@std@@AEBVGmpq@2@@Z)
C:\dev\Projects\MESH\x64\Debug\\MESH.exe : fatal error LNK1120: 20
unresolved externals
.
.
.
.
.
.
Problem that causes the above problem
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/corefinement.h>
#include <fstream>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Surface_mesh<K::Point_3> Mesh;
namespace PMP = CGAL::Polygon_mesh_processing;
int main(int argc, char* argv[])
{
const char* filename1 = (argc > 1) ? argv[1] : "data/blobby.off";
const char* filename2 = (argc > 2) ? argv[2] : "data/eight.off";
std::ifstream input(filename1);
Mesh mesh1, mesh2;
if (!input || !(input >> mesh1))
{
std::cerr << "First mesh is not a valid off file." << std::endl;
return 1;
}
input.close();
input.open(filename2);
if (!input || !(input >> mesh2))
{
std::cerr << "Second mesh is not a valid off file." << std::endl;
return 1;
}
Mesh out;
bool valid_union = PMP::corefine_and_compute_union(mesh1,mesh2, out);
if (valid_union)
{
std::cout << "Union was successfully computed\n";
std::ofstream output("union.off");
output << out;
return 0;
}
std::cout << "Union could not be computed\n";
return 1;
}
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Error, iampriyanshi, 02/21/2018
- Re: [cgal-discuss] Error, Sebastien Loriot (GeometryFactory), 02/21/2018
- Re: [cgal-discuss] Error, iampriyanshi, 02/21/2018
- Re: [cgal-discuss] Error, Sebastien Loriot (GeometryFactory), 02/22/2018
- Re: [cgal-discuss] Error, iampriyanshi, 02/21/2018
- Re: [cgal-discuss] Error, Sebastien Loriot (GeometryFactory), 02/21/2018
Archive powered by MHonArc 2.6.18.