Subject: CGAL users discussion list
List archive
- From: Pádraig Ó Conbhuí <>
- To:
- Subject: Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++
- Date: Mon, 30 Jan 2017 00:42:16 +0000
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:i1fkuhdMjBFfH60+5XpGhiHdlGMj4u6mDksu8pMizoh2WeGdxc65Zx7h7PlgxGXEQZ/co6odzbGH7+a+ACdZuc3J8ChbNscTB1ld0YRetjdjKfDGIHWzFOTtYS0+EZYKf35e1Fb/D3JoHt3jbUbZuHy44G1aMBz+MQ1oOra9QdaK3Izkn9204IDZNgVUmCKmM/Q1NwSztQyXt88MgIIkJLx20QrMunIPeuJYwiRjKluX2hr9/cyt54UwzyMFsP0o84tMUL7xYr8jZb1eFjUvdW4vt+PxshyWdYKD/HIdXS2t2jFPBQLF8ZSyCo/2uSz8vOpg2QGVOMT3SfY/XjH0vPQjcwPhlCpSb21xy2rQkMEl1K8=
Hi Oren,
This sounds like an error between one library looking for libc++ and another looking for libstdc++. Using -std=c++11 can cause libc++ to link unless you explicitly pass -stdlib=libstdc++ (not certain if libstdc++ or just stdc++). So differences in compiler flags between gmp, mpfr, boost and cgal and the c++ library they're linking is probably the problem. And since it's c++, probably just boost and cgal. Try passing -std=c++11 -stdlib=libc++ to both boost and cgal during compile.
Cheers,
Paddy
On Sun, Jan 29, 2017 at 5:43 PM, Marc Glisse <> wrote:
On Sun, 29 Jan 2017, Oren Shpigel wrote:
Hi,
I'm trying to use CGAL with clang++-3.8 and libc++.
I compiled boost, gmp and mpfr, and then compiled CGAL with them (all with
clang++-3.8 and libc++).
But when linking my own program with CGAL I get the following error:
//usr/local/lib/libCGAL.so: undefined reference to
`std::__1::basic_istream<char, std::__1::char_traits<char>
::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&(*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))'
In the CGAL website I saw that CGAL supports clang 3.5 and 3.6.2.
Do I get this error because clang 3.8 isn't supported?
No.
What has changed? Is there something I can do to use it?
Or any other idea about this linker error?
Did you link you program with libc++? It usually helps answering questions when we can actually see the command producing the error message, and the full message...
--
Marc Glisse
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/29/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/29/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Pádraig Ó Conbhuí, 01/30/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Oren Shpigel, 01/31/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Pádraig Ó Conbhuí, 01/30/2017
- Re: [cgal-discuss] Compile CGAL with clang++-3.8 and libc++, Marc Glisse, 01/29/2017
Archive powered by MHonArc 2.6.18.