Boost logo

Boost Users :

Subject: Re: [Boost-users] Build boost 1.52 on Mac OS X 10.8.2 with Clang c++11
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-11-15 16:05:53


On Nov 15, 2012, at 12:33 PM, Kikohs x <kikohs.x_at_[hidden]> wrote:

>
> Hello,
>
> I cannot compile boost with clang 3.1 on Mac os x 10.8.2.
>
> This is what I did:
>
> ./boostrap.sh --with-toolset=clang
> ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++"

Yeah, I just tried that (though I didn't run bootstrap.sh)

        cd /Sources/boost/release
        ./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++"

and it worked (as much as boost will work with c++11)

> I tried a user-config.jam with
>
> using clang-darwin

Mine says:
        import toolset : using ; using clang-darwin ;

> This is the error I have for almost every file:
>
> /boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found

At this point, I wonder if your clang/llvm is correctly installed.
Can you build simple command-line tools manually?

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net