Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Compiling CGAL with clang++ -std=c++11

Subject: CGAL users discussion list

List archive

[cgal-discuss] Compiling CGAL with clang++ -std=c++11


Chronological Thread 
  • From: jdumas <>
  • To:
  • Subject: [cgal-discuss] Compiling CGAL with clang++ -std=c++11
  • Date: Thu, 18 Apr 2013 08:00:12 -0700 (PDT)

Hello there. I have a small request to present here. Right now it seems that
only a few examples and demos do compiling under clang++ with the -std=c++11
option activated. I wanted to know if there is any plan to fix this in
future versions of the library.

Steps to reproduce the pb:
- Put the line "Add_definitions(-std=c++11)" in CMakeLists.txt at the root
of the CGAL directory
- mkdir build/ && cd build
- cmake -DWITH_demos=true -DWITH_examples=true -DCMAKE_CXX_COMPILER=`which
clang++` ..
- make examples (or simply 'make -C examples/Triangulation_3/' or 'make -C
examples/Linear_cell_complex')

As the Linear Cell Complex package is quite a recent one I suspect it might
explain why no one tried to compile it with clang++ -td=c++11 before, hence
the errors encountered.

Version of the libraries that I used:
- cgal 4.2
- clang 3.3
- boost 1.53.0
- cmake 2.8.9
- gmp 5.1.1 / mpfr 3.1.1
- os : ubuntu quantal


Best,
Jérémie.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compiling-CGAL-with-clang-std-c-11-tp4657220.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page