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: Eric Berberich <>
  • To:
  • Subject: Re: [cgal-discuss] Re:error compiling algebraic_curves example
  • Date: Tue, 22 Mar 2011 23:26:21 +0100

Marc Pouget wrote:
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



Hey Marc,

here are my lines to configure CGAL


export CGAL_CMAKE_COMMON_FLAGS="-DCGAL_CXX_FLAGS:STRING=-D__USE_ISOC99=1 -DCGAL_CXX_FLAGS_RELEASE:STRING=-D__USE_ISOC99=1
-DBoost_INCLUDE_DIR=$EXACUS_BOOST -DBoost_THREAD_LIBRARY=$EXACUS_BOOST/stage/lib/libboost_thread-mt-d.dylib
-DGMP_INCLUDE_DIR=$EXACUS_GMP/include/ -DGMP_LIBRARIES=$EXACUS_GMP/lib/libgmp.dylib
-DGMPXX_INCLUDE_DIR=$EXACUS_GMP/include/ -DGMPXX_LIBRARIES=$EXACUS_GMP/lib/libgmpxx.dylib
-DMPFR_INCLUDE_DIR=$EXACUS_MPFR/include/ -DMPFR_LIBRARIES=$EXACUS_MPFR/lib/libmpfr.dylib
-DWITH_LEDA=OFF
-DWITH_CGAL_Qt3=OFF
-DWITH_CGAL_Qt4=ON
-DWITH_CGAL_Core=ON -DWITH_CGAL_ImageIO=ON -DWITH_CGAL_PDB=ON
-DWITH_examples=OFF -DWITH_demos=OFF
-DCMAKE_VERBOSE_MAKEFILE=ON"

(with Variables properly set)

cmake -DCMAKE_BUILD_TYPE="Debug" $CGAL_CMAKE_COMMON_FLAGS -DCGAL_PACKAGES_FILE=$CGAL_CMAKE_DIR/packages-to-include.txt $CGAL_INSTALLATION_SOURCE_DIR

The second is a "hotbuild".

But most interesting for you might be

-DCGAL_CXX_FLAGS:STRING=-D__USE_ISOC99=1 -DCGAL_CXX_FLAGS_RELEASE:STRING=-D__USE_ISOC99=1

eriC




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