
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@gmail.com>wrote:
On Nov 15, 2012, at 12:33 PM, Kikohs x <kikohs.x@gmail.com> 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@gmail.com>
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users