Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re:error compiling algebraic_curves example

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re:error compiling algebraic_curves example


Chronological Thread 
  • From: Marc Pouget <>
  • To:
  • Subject: Re: [cgal-discuss] Re:error compiling algebraic_curves example
  • Date: Wed, 16 Mar 2011 16:43:23 +0100

HI,

I'm on Mac and hence have the same pb,

I tried to add the option in the CmakeCache.txt with

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=-std=c99

But it doesnt solve the pb,

Am I doing things the wrong way?

Thanks,
Marc


On Feb 24, 2011, at 10:30 AM, Eric Berberich wrote:

> Joachim Reichel wrote:
>> Hi,
>>> I'm running on Mac OS X 10.6.5 Intel Core 2 Duo (64-bit) and I'm compiling
>>> with g++ 4.2.1. Boost has been downloaded following the link provided in
>>> the CGAL installation manual and the version is 1.40.0.
>>> I'm also attaching the hw_rounding.hpp lines.
>>> Thanks
>>>
>>>
>>> #ifndef BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP
>>> #define BOOST_NUMERIC_INTERVAL_HW_ROUNDING_HPP
>>> #include <boost/numeric/interval/rounding.hpp>
>>> #include <boost/numeric/interval/rounded_arith.hpp>
>>>
>>> #define BOOST_NUMERIC_INTERVAL_NO_HARDWARE
>>>
>>> // define appropriate specialization of rounding_control for built-in
>>> types
>>> #if defined(__x86_64__) && defined(__USE_ISOC99)
>>> # include <boost/numeric/interval/detail/c99_rounding_control.hpp>
>> looking at the conditions of this include it seems that __USE_ISOC99 is not
>> defined. Can you try the compiler option -std=c99 ?
>
> Thanks Joachim for pointing out. Indeed on Mac OS this option is needed.
>
> eriC
>
>
>
> --
> 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