Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Error

Subject: CGAL users discussion list

List archive

[cgal-discuss] Error


Chronological Thread 
  • From: iampriyanshi <>
  • To:
  • Subject: [cgal-discuss] Error
  • Date: Tue, 20 Feb 2018 23:40:17 -0700 (MST)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:0ofELBYDU4ZRnXG93dCbNI7/LSx+4OfEezUN459isYplN5qZoMq6bnLW6fgltlLVR4KTs6sC17KN9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCazbL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjA38G/ZlM9+gr9Urx29qBJy2JLUbYOJOPZiYq/RYc0WSGxcVchRTSxBBYa8YpMOD+UbOOZYt5P9p1oOrBSkAwmsH+Pvyj5VjXLx2K060v8hERre3Aw6HtIPsG7brNPuNKcSUOC50afFwSnHYv5N1jf97ZLHchElof2WQb1wds/RxFApGgjYgFuQronlMCmU1uQLq2Wb6fBvWvm0hG4jtQ59uCSgxsApioTPm4kbyUjE+D1kzIs0O9G0UlB3bN6qHZdKqi2XOYV7TtkgTm12visx16cItoShfCcQzZQq3x7fZOKDc4iP+h/jUumcLS1+hH1/Y72wnBKy/la6xuLgUcm01U5GritDktbSqnAAzwHf58mZRvdn4Eus2TiC2xrO5uxKL004j6jWJ4A5zr41jJUTsEDDHiHsmEXxia+bbkAk+umz6+T8erXmvJ6cNo9uhQH4KaQums2/Dfk2PwQSW2WW4uu81Lj58k34RLVGlOE5kq7csJzCP8QUura5AxNJ0oYk8xuwEzim384cnXUeMV1FeQmHgJT0O1HVO/D1Fuy/glSpkDdz3f/KJLzhApPXLnjCirjtZ7h961QPgDY0mNtQ7pYRBrAaK+/oQWfwssbZB1k3KV+a2eHiXdR005sEWHOGBLSZMeuGtF6T/fo1IviFYpQVuW+mc6kN6PvnjHt/klgYK/r6laALYWy1S6w1a36SZmDh149YQDU6+zEmRemvs2WsFDtaZnK8RaU5v2hpB4evDIOFTYeo0ufYgHWLW6ZOb2UDMWiiVG/yftzdCfgJYSOWZMRml25cDOXze8oazRir8TTC5f9nI+7To3BKs86l0tF/7ene0xo18G4tAg==

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/



Archive powered by MHonArc 2.6.18.

Top of Page