Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 4.1 make error Win7

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 4.1 make error Win7


Chronological Thread 
  • From: mytien <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 4.1 make error Win7
  • Date: Thu, 10 Oct 2013 07:39:21 -0700 (PDT)

So, it appears that the installation didn't work after all...
The example stated above compiles just fine, but as soon as gmp is used, I
again receive many "undefined references errors". I tried to compile the
Triangulation_3/simple_triangulation_3.cpp and received these errors:

./debug\main.o: In function `ZN4CGAL8Gmpq_repC1Ev':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:51: undefined
reference to `__gmpq_init'
./debug\main.o: In function `ZN4CGAL8Gmpq_repD1Ev':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:52: undefined
reference to `__gmpq_clear'
./debug\main.o: In function `ZN4CGAL4GmpqC1Ed':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:133: undefined
reference to `__gmpq_set_d'
./debug\main.o: In function `ZNK4CGAL4GmpqeqERKS0_':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:193: undefined
reference to `__gmpq_equal'
./debug\main.o: In function `ZNK4CGAL4GmpqltERKS0_':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:194: undefined
reference to `__gmpq_cmp'
./debug\main.o: In function `ZN4CGAL4GmpqpLERKS0_':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:276: undefined
reference to `__gmpq_add'
./debug\main.o: In function `ZN4CGAL4GmpqmIERKS0_':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:286: undefined
reference to `__gmpq_sub'
./debug\main.o: In function `ZN4CGAL4GmpqmLERKS0_':
C:/Qt/Qt5.1.0/Tools/mingw48_32/include/CGAL/GMP/Gmpq_type.h:296: undefined
reference to `__gmpq_mul'
collect2.exe: error: ld returned 1 exit status

It is very frustrating that the gmp library keeps throwing errors, first
during configuration of CGAL, then during compilation of CGAL and now during
the compilation of a testprogram that uses CGAL.
I cannot believe, that this happens to everybody, who tries to use CGAL with
MinGW. So please, can someone describe every step of how you really compile
CGAL? Because, apparently I am doing something wrong. I already described my
steps and the resulting errors and slowly I am running out of ideas...



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-4-1-make-error-Win7-tp4658063p4658171.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page