Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac
- Date: Thu, 24 Apr 2014 11:39:13 +0200
- Organization: GeometryFactory
Le Wednesday 23 April 2014 14:08:04 Becksfort, Jared a écrit :
> Hello,
>
> I have had some trouble getting programs using CGAL to run using c++11 on
> a mac 10.8.5.
>
> My clang++ version is
>
> -----------
> Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
> Target: x86_64-apple-darwin12.5.0
> Thread model: posix
> -----------
That version of clang does not use -stdlib=libc++ by default. Instead, it
uses
libstd++ (the STL from GNU/g++).
> The issue is very likely to be related to the stdlib argument, I think. I
> built boost using b2 and cgal using cmake with "-std=c++11
> -stdlib=libc++"
Probably the compilation of Boost using b2 has used the default stdlib
(libstdc++), and not the libc++ you have used to compile CGAL libraries. That
way, you get libraries that are binary-incompatible. I suggest you either
recompile Boost libraries with libc++, or recompile CGAL libraries with
libstdc++.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Marc Glisse, 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Laurent Rineau (CGAL/GeometryFactory), 04/24/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
- RE: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/30/2014
- Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac, Becksfort, Jared, 04/24/2014
Archive powered by MHonArc 2.6.18.