CGAL compile error -
i installed required libraries of cgal, , added library path makefile while compiling program on linux, still occured compiling error.
this content of makefile
//-------------------------------------------------- flags = -wall -g -std=c++11 -o3 boost_lib_path = -i /usr/include/include/ cgal_lib_path = -i /usr/local/include/ : g++ $(flags) $(boost) $(cgal) main.cpp -o main clean : rm main //--------------------------------------------------
bellow error message while compiling, please !
//---------------------------------------------------- g++ -wall -g -std=c++11 -o3 -i /usr/include/include/ -i /usr/local/include/ main.cpp -o main /usr/local/include/cgal/interval_nt.h:208: undefined reference `cgal::assertion_fail(char const*, char const*, int, char const*)' /usr/local/include/cgal/interval_nt.h:210: undefined reference `cgal::assertion_fail(char const*, char const*, int, char const*)' /tmp/cc5wx5dm.o: in function `~gmpz_rep': /usr/local/include/cgal/gmp/gmpz_type.h:57: undefined reference `__gmpz_clear' /usr/local/include/cgal/gmp/gmpz_type.h:57: undefined reference `__gmpz_clear' /usr/local/include/cgal/gmp/gmpz_type.h:57: undefined reference `__gmpz_clear' /tmp/cc5wx5dm.o: in function `cgal::gmpz::operator==(cgal::gmpz const&) const': /usr/local/include/cgal/gmp/gmpz_type.h:154: undefined reference `__gmpz_cmp' /usr/local/include/cgal/gmp/gmpz_type.h:154: undefined reference `__gmpz_cmp' /tmp/cc5wx5dm.o: in function `cgal::quadratic_program_solution<cgal::gmpz>::optimality_certificate_numerators_begin() const': /usr/local/include/cgal/qp_solution.h:460: undefined reference `cgal::assertion_fail(char const*, char const*, int, char const*)' /tmp/cc5wx5dm.o: in function `cgal::gmpz::operator<(cgal::gmpz const&) const': /usr/local/include/cgal/gmp/gmpz_type.h:152: undefined reference `__gmpz_cmp' /usr/local/include/cgal/gmp/gmpz_type.h:152: undefined reference `__gmpz_cmp' /usr/local/include/cgal/gmp/gmpz_type.h:152: undefined reference `__gmpz_cmp' /tmcgal::assertion_fail(char const*, char const*, int, char const*)' collect2: error: ld returned 1 exit status make: *** [all] error 1
Comments
Post a Comment