Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Compiling CGAL with clang++ -std=c++11
  • Date: Tue, 07 May 2013 15:15:12 +0200

Le 06/05/2013 16:46, jdumas a écrit :
Wait, how can I check the value of the macro _LIBCPP_VERSION inside the c++
code?

Anyhow, I compiled libc++ from the svn repo and installed it on my system. I
can compile stuff using clang++ -std=c++11 -stdlib=libc++ without any
issues. However when I add the line Add_definitions(-stdlib=libc++) to my
CMakeLists.txt and try to compile the examples, I get tons of undefined
reference to `std::__1::cout' and whatnot at the linkage step. The examples
under Linear_cell_complex still do not compile (errors appear before
linkage).

For the link, explanations are given here
http://libcxx.llvm.org/




Have you tried to compile those examples as I did? You should be able to get
the same error messages as I did quite easily, and make sense out of it more
quickly than I would.

Not yet. This is a low priority as there is a simple solution: use gcc ;)

More seriously there are sometimes some strange errors with specific compilers that are solved by future versions.

Guillaume




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



--
===================================================================
Guillaume DAMIAND

CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.26.62 Fax: +33 (0)4.72.43.15.36
Mail:

Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================


Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.18.

Top of Page