|
Boost-Build : |
Subject: [Boost-build] Problems building Boost with clang toolchain and C++11
From: Jürgen Simon (juergen_simon_at_[hidden])
Date: 2012-06-20 06:19:13
Hi,
I'm required to compile Boost with clang on OSX and C++11 support. I have
used the following commands to attempt a build:
./bootstrap.sh -toolchain=clang
./bjam toolset=clang cxxflags="-std=c++0x11stdlib=libc++" threading=multi
variant=release link=shared runtime-link=shared --layout=system
--without-mpi --without-python --universal install --prefix=/opt/local
I'm getting errors from the linker:
clang-darwin.link.dll
bin.v2/libs/program_options/build/clang-darwin-4.2.1/release/threading-multi/libboost_program_options.dylib
Undefined symbols for architecture x86_64:
"std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced
from:
boost::program_options::invalid_syntax::get_template(boost::program_options::invalid_syntax::kind_t)
in cmdline.o
boost::program_options::detail::cmdline::check_style(int) const in
cmdline.o
boost::program_options::detail::cmdline::run() in cmdline.o
boost::program_options::detail::cmdline::parse_long_option(std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&) in
cmdline.o
boost::program_options::detail::cmdline::parse_disguised_long_option(std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&) in
cmdline.o
boost::program_options::detail::cmdline::parse_short_option(std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&) in
cmdline.o
boost::program_options::detail::cmdline::finish_option(boost::program_options::basic_option<char>&,
std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&,
std::__1::vector<boost::function1<std::__1::vector<boost::program_options::basic_option<char>,
std::__1::allocator<boost::program_options::basic_option<char> > >,
std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&>,
std::__1::allocator<boost::function1<std::__1::vector<boost::program_options::basic_option<char>,
std::__1::allocator<boost::program_options::basic_option<char> > >,
std::__1::vector<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::allocator<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > > >&> > >
const&) in cmdline.o
Any idea what I am missing?
-- View this message in context: http://boost.2283326.n4.nabble.com/Problems-building-Boost-with-clang-toolchain-and-C-11-tp4631556.html Sent from the Boost - Build mailing list archive at Nabble.com.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk