|
Boost Users : |
Subject: Re: [Boost-users] Build boost 1.52 on Mac OS X 10.8.2 with Clang c++11
From: Kikohs x (kikohs.x_at_[hidden])
Date: 2012-11-15 16:10:51
Hello,
You are right !
It seems my clang is broken:
I tried clang++ -stdlib=libc++ ~/Desktop/test2.cpp
test2.cpp
#include <cstdint>
int main() {
// stuff
}
fatal error: 'cstdint' file not found
#include <cstdint>
I installed xcode command line tools and the right headers are in
/usr/lib/c++/v1.
Do you have any idea ?
On Thu, Nov 15, 2012 at 10:05 PM, Marshall Clow <mclow.lists_at_[hidden]>wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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