Subject: CGAL users discussion list
List archive
- From:
- To:
- Subject: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny
- Date: Thu, 12 Mar 2009 14:43:27 +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" .
If I want to compile only one example i do not need to write -DCGAL_CXX_FLAGS="-frounding-math"
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*)'
after going to declaration:
Interval_nt_h
struct Test_runtime_rounding_modes {
Test_runtime_rounding_modes()
{
// We test whether GCC's -frounding-math option has been forgotten.
// The macros CGAL_IA_MUL and CGAL_IA_DIV stop constant propagation only
// on the second argument, so if -fno-rounding-math, the compiler optimizes
// the 2 negations and we get wrong rounding.
typename Interval_nt<>::Internal_protector P;
--> CGAL_assertion_msg(-CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1),
"Wrong rounding: did you forget the -frounding-math option if you use GCC?");
CGAL_assertion_msg(-CGAL_IA_DIV(-1, 10) != CGAL_IA_DIV(1, 10),
"Wrong rounding: did you forget the -frounding-math option if you use GCC?");
}
};
after goint to declaration:
assertions.h
#if defined(CGAL_NO_ASSERTIONS)
# define CGAL_assertion(EX) (static_cast<void>(0))
# define CGAL_assertion_msg(EX,MSG) (static_cast<void>(0))
# define CGAL_assertion_code(CODE)
#else
# define CGAL_assertion(EX) \
(CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
--> # define CGAL_assertion_msg(EX,MSG) \
(CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
# define CGAL_assertion_code(CODE) CODE
#endif // CGAL_NO_ASSERTIONS
The -frounding-math options is still a problem for me.
What can I do?
Cheers
Engineering Center Steyr GmbH & Co KG
Geschaeftsfuehrende Gesellschaft: Engineering Center Steyr GmbH
Geschaeftsfuehrer der geschaeftsfuehrenden Gesellschaft: Dipl. Ing. Franz Dorfer
Sitz der geschaeftsfuehrenden Gesellschaft: 4300 St. Valentin, Oesterreich
Firmenbuchgericht: St. Poelten / FN 140816h
Sitz der Gesellschaft: 4300 St. Valentin, Steyrer Strasse 32, Oesterreich
Firmenbuchgericht: St. Poelten / FN 222001y
CONFIDENTIALITY NOTE: This message contains information which may be privileged or confidential, or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify us immediately by return e-mail to the sender of this message.
- AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Martin . Schifko, 03/10/2009
- Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Joachim Reichel, 03/10/2009
- Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Fernando Cacciola, 03/11/2009
- Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Martin . Schifko, 03/12/2009
- Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Joachim Reichel, 03/12/2009
- Antwort: Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian, Martin . Schifko, 03/16/2009
- Re: Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian, omar rodriguez, 03/16/2009
- Antwort: Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian, Martin . Schifko, 03/16/2009
- Re: Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Joachim Reichel, 03/12/2009
- Antwort: Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Martin . Schifko, 03/12/2009
- Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Fernando Cacciola, 03/11/2009
- Re: AW: Re: [cgal-discuss] install cgal 3.4 devian lenny, Joachim Reichel, 03/10/2009
Archive powered by MHonArc 2.6.16.