Subject: CGAL users discussion list
List archive
- From: Marc Glisse <>
- To: "" <>
- Subject: Re: [cgal-discuss] clang++ c++11 and stdlib libc++ on mac
- Date: Thu, 24 Apr 2014 11:23:51 +0200 (CEST)
On Wed, 23 Apr 2014, Becksfort, Jared wrote:
I have had some trouble getting programs using CGAL to run using c++11 on
a mac 10.8.5.
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++", not brew or macports. I did use brew to install each
package a while back before using c++11, though, so there is some
possibility of files hanging around built against cstdlib (or whatever).
Does anyone know a good way to unravel or sort out this problem? Or
maybe, hopefully, I am just doing something dumb that will be easy for
someone to spot?
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
-----------
The unsuccessful CGAL program build command is:
--------------
clang++ -std=c++11 -stdlib=libc++ -L/usr/local/lib -lCGAL -lboost_thread
-o sout scratch_cgal.cpp
Undefined symbols for architecture x86_64:
"std::__1::basic_istream<char, std::__1::char_traits<char>
::operator>>(std::__1::basic_istream<char, std::__1::char_traits<char> >&CGAL::operator>>(std::__1::basic_istream<char,
(*)(std::__1::basic_istream<char, std::__1::char_traits<char> >&))",
referenced from:
std::__1::char_traits<char> >&, CGAL::File_header_extended_OFF&) in
libCGAL.a(all_files.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
--------------
Could you add -v to your command line and show the output?
--
Marc Glisse
- [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.