Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] gdb debugging

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] gdb debugging


Chronological Thread 
  • From: Marco Aurelio Sterpa <>
  • To:
  • Subject: Re: [cgal-discuss] gdb debugging
  • Date: Wed, 14 Oct 2009 16:53:35 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=XWXb4QJg0LqLOlRBdcwWMjcvIaLKYd5DsXK+A9S6RkaA7iFAZCaCnxO4lCwUpG/ARL hDxDRx5FtzwRvLVVYltrz0JXh2OvUU0KciJxjRdZHDaT85v71ien5NN/RIGre0eOt+3q e+48/2zLRk0XVyWcb0bmkJuzGNUqe82vjOXtU=

I've solved thanks to your precise instructions. Best regards

2009/10/14 Laurent Rineau (GeometryFactory) <>
On Wednesday 14 October 2009 14:58:54 Marco Aurelio Sterpa wrote:
> Sorry I didn't read that page, anyway I'm using CGAL 3.5 installed with
> cmake on Ubuntu 8.04 with kernel 2.6.24-24-generic; the compiler version is
> gcc version 4.2.4. I got a "floating point exception" with this line:
>
> while(Q2.top().point().x() <= x_u && !Q2.empty())
>
> where NT x_u = -1/v_ij.x();
>
> and v_ij is a Point_2 object given by the intersection of two lines. I hope
> this informations are enough to get into the problem. Thanks in advance,
> best regards.

You were talking about the script cgal_create_makefile. That script is no
longer shipped within CGAL>=3.4. I guess you are mixing two different versions
of CGAL, on that was installed by a Ubuntu package (or that you have installed
by hand in the past), and one that you installed recently by hand. What is the
value of your environment variable $CGAL_MAKEFILE?

Now that CGAL has switch to CMake, you should consider using the script
cgal_create_cmake_script, that does the same job in the CMake world: it
creates a file named CMakeLists.txt, which can be used by CMake. With CMake,
to add -g, you just have to modify the CMake variable named CMAKE_BUILD_TYPE,
in the CMake GUI (command line: "cmake-gui $PWD"), so that its value is
"DEBUG".


If you are unwilling to use CMake, in your Makefile, add "-g" in the line that
starts with:
 CXXFLAGS =
so that it starts with:
 CXXFLAGS = -g
And make sure you have at least the flag -frounding-math in your calls to g++,
during the compilation, otherwise the filtered arithmetic of CGAL kernels
cannot run correctly.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page