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: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 4.1 make error Win7
  • Date: Thu, 10 Oct 2013 17:03:47 +0200 (CEST)

On Thu, 10 Oct 2013, mytien wrote:

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:

By now you should know that "I tried" is not as helpful as "here are the commands I ran". Did you use cmake to generate a makefile to compile this test?

./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'

Missing -lgmp on the command line, but I don't know how you called the compiler...

It is very frustrating that the gmp library keeps throwing errors, first

Here it isn't the library complaining but the linker.

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...

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page