Subject: CGAL users discussion list
List archive
- 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,Thanks Joachim for pointing out. Indeed on Mac OS this option is needed.
I'm running on Mac OS X 10.6.5 Intel Core 2 Duo (64-bit) and I'm compilinglooking at the conditions of this include it seems that __USE_ISOC99 is not
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>
defined. Can you try the compiler option -std=c99 ?
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
- [cgal-discuss] Re:error compiling algebraic_curves example, cecilia, 03/01/2011
- <Possible follow-up(s)>
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Marc Pouget, 03/16/2011
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Eric Berberich, 03/22/2011
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Marc Pouget, 03/23/2011
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Eric Berberich, 03/23/2011
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Marc Pouget, 03/23/2011
- Re: [cgal-discuss] Re:error compiling algebraic_curves example, Eric Berberich, 03/22/2011
Archive powered by MHonArc 2.6.16.