Skip to Content.
Sympa Menu

cgal-discuss - Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny

Subject: CGAL users discussion list

List archive

Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny
  • Date: Thu, 12 Mar 2009 21:59:14 +0100

Hi,

> to remember:
> if I want to compile all examples togehter - which I do not want I have to
> write:
> cmake -DCGAL_CXX_FLAGS="-frounding-math" .

yes, (or add whatever options you want/need, for example -O2 -NDEBUG for
optimized builds).

> If I want to compile only one example i do not need to write
> -DCGAL_CXX_FLAGS="-frounding-math"

Correct.

> Now I want to use and try some features of CGAL in my existing project:
>
> after
>
> #include <CGAL/Point_3.h>
> #include <CGAL/Vector_3.h>
>
> and compiling with Netbeans IDE 6.5
> I get following message:
>
> build/Debug/GNU-Linux-x86/io/io.o: In function
> `Test_runtime_rounding_modes':
> /usr/include/CGAL/Interval_nt.h:153: undefined reference to
> `CGAL::assertion_fail(char const*, char const*, int, char const*)'
> /usr/include/CGAL/Interval_nt.h:155: undefined reference to
> `CGAL::assertion_fail(char const*, char const*, int, char const*)'
> /usr/include/CGAL/Interval_nt.h:153: undefined reference to
> `CGAL::assertion_fail(char const*, char const*, int, char const*)'
> /usr/include/CGAL/Interval_nt.h:155: undefined reference to
> `CGAL::assertion_fail(char const*, char const*, int, char const*)'

the problem is not the -frounding-mode flag. You have to link your
application with the CGAL library. At least with libCGAL.so ("-lCGAL"),
depending on the features you use, also with the other libCGAL*.so
libraries.

Joachim



Archive powered by MHonArc 2.6.16.

Top of Page